首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Emacs 24.4.1中的下标未正确显示

Emacs 24.4.1中的下标未正确显示
EN

Stack Overflow用户
提问于 2015-01-27 17:54:40
回答 1查看 660关注 0票数 5

我正在编写一个使用unicode下标k ("\_k")的赋值。然而,我没有得到订阅的k,而是得到了以下内容:

它仍然使用数字和一些字母的下标,但不能用'k‘。

我最初对emacs 24.3有异议,然后被告知更新为24.4。这个问题仍然存在。

有没有其他人有过这个问题,并找到了解决办法?

我正在用Emacs v.24.4.1运行在Mac上

提前感谢

编辑

这是我的.emacs文件:

代码语言:javascript
复制
(load-file (let ((coding-system-for-read 'utf-8))
             (shell-command-to-string "agda-mode locate")))

(set-default-font "-apple-DejaVu_Sans-medium-normal-normal-*-*-*-*-*-p-0-iso10646-1")
; Change Control-c Control-, and Control-c Control-. in Agda mode
; so they show the normalized rather than the "simplified" goals
(defun agda2-normalized-goal-and-context ()
  (interactive)
  (agda2-goal-and-context '(3)))
(defun agda2-normalized-goal-and-context-and-inferred ()
  (interactive)
  (agda2-goal-and-context-and-inferred '(3)))
(eval-after-load "agda2-mode"
  '(progn
     (define-key agda2-mode-map (kbd "C-c C-,")
       'agda2-normalized-goal-and-context)
     (define-key agda2-mode-map (kbd "C-c C-.")
       'agda2-normalized-goal-and-context-and-inferred)))

; This defines backslash commands for some extra symbols.
(eval-after-load "quail/latin-ltx"
  '(mapc (lambda (pair)
           (quail-defrule (car pair) (cadr pair) "TeX"))
         '( ("\\bb" "") ("\\bl" "") ("\\bs" "")
            ("\\bt" "") ("\\bv" "") ("\\cv" "⋎")
            ("\\comp" "∘") ("\\m" "↦") ("\\om" "ω"))))

; This sets the Control-c Control-k shortcut to
; describe the character under your cursor.
(global-set-key "\C-c\C-k" 'describe-char)

(custom-set-variables
 '(agda2-include-dirs
   (quote ("." "/Users/dylanthiemann/Dropbox/University of Iowa/2nd Senior Year/Spring 2015/PLC/ial")))
 )

代码来自Agda:

代码语言:javascript
复制
module bool-kleene-thms where

open import bool
open import bool-kleene
open import eq

&&ₖ-idem : ∀ (b : ₖ) → b &&ₖ b ≡ b
&&ₖ-idem b = {!!}

tt-&&ₖ : ∀ (b : ₖ) → tt &&ₖ b ≡ b
tt-&&ₖ b = {!!}

||ₖ-idem : ∀ (b : ₖ) → b ||ₖ b ≡ b
||ₖ-idem b = {!!}

||ₖ-tt : ∀ (b : ₖ) → b ||ₖ tt ≡ tt
||ₖ-tt b = {!!}

||ₖ-ff : ∀ (b : ₖ) → b ||ₖ ff ≡ b
||ₖ-ff b = {!!}

编辑2

Ctrl-u Ctrl-x =对受影响字符的分析结果:

代码语言:javascript
复制
             position: 91 of 830 (11%), column: 2
            character: ₖ (displayed as ₖ) (codepoint 8342, #o20226, #x2096)
    preferred charset: unicode (Unicode (ISO10646))
code point in charset: 0x2096
               script: symbol
               syntax: w        which means: word
             category: .:Base, L:Left-to-right (strong)
             to input: type "\_k" with Agda input method
          buffer code: #xE2 #x82 #x96
            file code: #xE2 #x82 #x96 (encoded by coding system utf-8-unix)
              display: terminal code #xE2 #x82 #x96
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-01-28 00:13:07

我需要安装新字体..。我使用这个http://dejavu-fonts.org/wiki/Download,然后使用字体图书安装。这个问题就解决了!

票数 6
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/28176890

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档