TeX - LaTeX Asked on January 3, 2021
As i mentioned below i’m using mongolian cyrillic and using template of IEEEtran and tried using
tracinglostchars=2 % Warn if a font does not contain a character
usepackage{tgtermes} % Times clone.
usepackage[T1,T2A]{fontenc} % Select a Cyrillic encoding
usepackage[utf8]{inputenc} % The default since 2018
usepackage[english, main=mongolian]{babel}
usepackage{substitutefont} % For substitutefont
babeltags{mongolian=mongolian} % Enable textmongolian, begin{mongolian}, etc.
babeltags{english=english}
usepackage{microtype} % Enable font expansion and protrusion.
substitutefont{T2A}{rmdefault}{Tempora-TLF} % Supplementary font for Cyrillic
i just added it on top of the code am i doing something wrong or am i so bad at it the example code worked fine when its added to IEEEtran template it wont work the log says
No declaration for shape T2A/Tempora-TLF/m/sc. section*{Ажлын зорилго}
Font shape `T2A/qtm/m/n' undefined(Font) using `T2A/cmr/m/n' instead
Underfull hbox (badness 1661) in paragraph
Underfull vbox (badness 10000) has occurred while output is active []
Some font shapes were not available, defaults substituted.
Label(s) may have changed. Rerun to get cross-references right.
And every package being used on the IEEEtran template plus the new codes
documentclass[conference]{IEEEtran}
IEEEoverridecommandlockouts
% The preceding line is only needed to identify funding in the first footnote. If that is unneeded, please comment it out.
usepackage{cite}
usepackage{amsmath,amssymb,amsfonts}
usepackage{algorithmic}
usepackage{graphicx}
usepackage{textcomp}
usepackage{xcolor}
tracinglostchars=2 % Warn if a font does not contain a character
usepackage{tgtermes} % Times clone.
usepackage[T1,T2A]{fontenc} % Select a Cyrillic encoding
usepackage[utf8]{inputenc} % The default since 2018
usepackage[english, main=mongolian]{babel}
usepackage{substitutefont} % For substitutefont
babeltags{mongolian=mongolian} % Enable textmongolian, begin{mongolian}, etc.
babeltags{english=english}
usepackage{microtype} % Enable font expansion and protrusion.
substitutefont{T2A}{rmdefault}{Tempora-TLF} % Supplementary font for Cyrillic
defBibTeX{{rm Bkern-.05em{sc ikern-.025em b}kern-.08em
Tkern-.1667emlower.7exhbox{E}kern-.125emX}}
i dont see any compiling error at all. using TexStudio right now the error is always section{}
some reason it wont support mongolian cyrillic if its tempora-TLF
Orignal post:
In MikTek, TexStudio cyrillic wont appear normal if its displayed its displaying question mark on pdf file "АБВГД"="?????"
! Package inputenc Error: Unicode character ф (U+0444)
(inputenc) not set up for use with LaTeX.
Using UTF-8 unicode tried others with Cyrillic support nothing major happened some dont compile some shows "?????"
Loading babel didnt fix the problem plus when i tried using windows-1258 there isnt any compiling error but
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (MiKTeX 20.7)
entering extended mode
(C:/Users/mcmun/Documents/test.tex
LaTeX2e <2020-02-02> patch level 5
L3 programming layer <2020-09-03>
(C:UsersmcmunAppDataLocalProgramsMiKTeXtex/latex/ieeetranIEEEtran.cls
Document Class: IEEEtran 2015/08/26 V1.8b by Michael Shell
-- See the "IEEEtran_HOWTO" manual for usage information.
-- http://www.michaelshell.org/tex/ieeetran/
(C:UsersmcmunAppDataLocalProgramsMiKTeXtex/latex/psnfssot1ptm.fd)
-- Using 8.5in x 11in (letter) paper.
-- Using PDF output.
-- This is a 10 point document.
)
** ATTENTION: Overriding command lockouts (line 2).
(C:UsersmcmunAppDataLocalProgramsMiKTeXtex/latex/citecite.sty)
(C:UsersmcmunAppDataLocalProgramsMiKTeXtex/latex/amsmathamsmath.sty
For additional information on amsmath, use the `?' option.
(C:UsersmcmunAppDataLocalProgramsMiKTeXtex/latex/amsmathamstext.sty
(C:UsersmcmunAppDataLocalProgramsMiKTeXtex/latex/amsmathamsgen.sty))
(C:UsersmcmunAppDataLocalProgramsMiKTeXtex/latex/amsmathamsbsy.sty)
(C:UsersmcmunAppDataLocalProgramsMiKTeXtex/latex/amsmathamsopn.sty))
(C:UsersmcmunAppDataLocalProgramsMiKTeXtex/latex/amsfontsamssymb.sty
(C:UsersmcmunAppDataLocalProgramsMiKTeXtex/latex/amsfontsamsfonts.sty))
(C:UsersmcmunAppDataLocalProgramsMiKTeXtex/latex/algorithmsalgorithmic.
sty (C:UsersmcmunAppDataLocalProgramsMiKTeXtex/latex/baseifthen.sty)
(C:UsersmcmunAppDataLocalProgramsMiKTeXtex/latex/graphicskeyval.sty))
(C:UsersmcmunAppDataLocalProgramsMiKTeXtex/latex/graphicsgraphicx.sty
(C:UsersmcmunAppDataLocalProgramsMiKTeXtex/latex/graphicsgraphics.sty
(C:UsersmcmunAppDataLocalProgramsMiKTeXtex/latex/graphicstrig.sty)
(C:UsersmcmunAppDataLocalProgramsMiKTeXtex/latex/graphics-cfggraphics.c
fg)
(C:UsersmcmunAppDataLocalProgramsMiKTeXtex/latex/graphics-defpdftex.def
))) (C:UsersmcmunAppDataLocalProgramsMiKTeXtex/latex/basetextcomp.sty)
(C:UsersmcmunAppDataLocalProgramsMiKTeXtex/latex/xcolorxcolor.sty
(C:UsersmcmunAppDataLocalProgramsMiKTeXtex/latex/graphics-cfgcolor.cfg)
) (C:UsersmcmunAppDataLocalProgramsMiKTeXtex/latex/basefontenc.sty
(C:UsersmcmunAppDataLocalProgramsMiKTeXtex/latex/cyrillict2aenc.def
(C:UsersmcmunAppDataLocalProgramsMiKTeXtex/latex/baset2aenc.dfu))
(C:UsersmcmunAppDataLocalProgramsMiKTeXtex/latex/psnfsst1ptm.fd))
(C:UsersmcmunAppDataLocalProgramsMiKTeXtex/latex/l3backendl3backend-pdf
tex.def)
No file test.aux.
(C:UsersmcmunAppDataLocalProgramsMiKTeXtex/latex/cyrillict2acmr.fd)
-- Lines per column: 56 (exact).
(C:UsersmcmunAppDataLocalProgramsMiKTeXtex/context/base/mkiisupp-pdf.mk
ii
[Loading MPS to PDF converter (version 2006.09.02).]
)
(C:UsersmcmunAppDataLocalProgramsMiKTeXtex/latex/epstopdf-pkgepstopdf-b
ase.sty
(C:UsersmcmunAppDataLocalProgramsMiKTeXtex/generic/infwarerrinfwarerr.s
ty) (C:UsersmcmunAppDataLocalProgramsMiKTeXtex/latex/grfextgrfext.sty
(C:UsersmcmunAppDataLocalProgramsMiKTeXtex/generic/kvdefinekeyskvdefine
keys.sty))
(C:UsersmcmunAppDataLocalProgramsMiKTeXtex/latex/kvoptionskvoptions.sty
(C:UsersmcmunAppDataLocalProgramsMiKTeXtex/generic/ltxcmdsltxcmds.sty)
(C:UsersmcmunAppDataLocalProgramsMiKTeXtex/generic/kvsetkeyskvsetkeys.s
ty))
(C:UsersmcmunAppDataLocalProgramsMiKTeXtex/generic/pdftexcmdspdftexcmds
.sty (C:UsersmcmunAppDataLocalProgramsMiKTeXtex/generic/iftexiftex.sty)
)) (C:UsersmcmunAppDataLocalProgramsMiKTeXtex/latex/amsfontsumsa.fd)
(C:UsersmcmunAppDataLocalProgramsMiKTeXtex/latex/amsfontsumsb.fd)
! LaTeX Error: Command cyrd unavailable in encoding T1.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.61 This and the IEд
фа фуадсфх ахфхсэайо хфойаш о...
From your comments, it sounds as if you want to use Mongolian with a document class that sets the font to Times. (The more information you give us about what you are trying to do, the easier it is to help.) Since the default Times font does not support Cyrillic, you must select a supplementary font that does, such as Tempora. Here is a template in Mongolian.
documentclass{article}
usepackage[paperwidth=10cm]{geometry} % Format MWE for TeX.SX
tracinglostchars=2 % Warn if a font does not contain a character
usepackage{tgtermes} % Times clone.
usepackage[T1,T2A]{fontenc} % Select a Cyrillic encoding
usepackage[utf8]{inputenc} % The default since 2018
usepackage[english, main=mongolian]{babel}
usepackage{substitutefont} % For substitutefont
babeltags{mongolian=mongolian} % Enable textmongolian, begin{mongolian}, etc.
babeltags{english=english}
usepackage{microtype} % Enable font expansion and protrusion.
substitutefont{T2A}{rmdefault}{Tempora-TLF} % Supplementary font for Cyrillic
begin{document}
section*{ХҮНИЙ ЭРХИЙН ТҮГЭЭМЭЛ ТУНХАГЛАЛ}
Хүн төрөлхтөний гэр бүлийн бүх гишүүнд угаас заяасан нэр төр болон тэдний тэгш, салшгүй эрхийг хүлээн зөвшөөрөх нь эрх чөлөө, шударга ёс, бүх нийтийн энх тайвны үндэс мөнийг иш үндэс болгон,
хүний эрхийг үл тоомсорлох, басамжлах нь зон олны жигшлийг төрүүлсэн балмад үлйдэлд хүргэж байсан бөгөөд хүмүүс үг хэл, итгэл үнэмшилтэй байх, эрх ёөлөөтэй, айх аюулгүй, гачигдал зовлонгүй дэлхий ертөнцийг бий болгох нь хүн ардын эрхэм дээд эрмэлзлэл мөн хэмээн үзэж,
end{document}
The text should be an excerpt from the UN Declaration of Human Rights.
Your latest edit includes the console messages, which give us enough information to diagnose the problem. (For future reference, it would be much better to copy-and-paste enough source code to reproduce the bug, as text in a code block, not a partial screenshot. We can then copy and edit it.)
You’re loading the T2A encoding, but not ever selecting it. You also aren’t loadling a Cyrillic font.
Insert the following lines into your preamble, tweaking as appropriate.
tracinglostchars=2
usepackage[english, main=russian]{babel}
usepackage{substitutefont}
babeltags{russian=russian}
babeltage{english=english}
substitutefont{T2A}{rmdefault}{Tempora-TLF}
This will select Tempora as the companion font for Times whenever you change the language to Russian. (Or replace russian
with the correct language.) It will also print a warning message whenever you try to use a character that the current font does not contain, rather than silently printing it to the log.
To change languages, write all English phrases as textenglish{ABCD}
and all English paragraphs between begin{english}
and end{english}
. Or set English as the main lanugage, and write all Russian phrases as textrussian{АБВГД}
with all Russian paragraphs between begin{russian}
and end{russian}
.
Correct answer by Davislor on January 3, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP