Tag Info

Hot answers tagged

33

use xelatex or lualatex. Then it is really simple: \documentclass[12pt]{article} \usepackage{fontspec} \setmainfont{DejaVu Serif} \begin{document} foo φύσις bar \end{document}


23

You can pass the options [greek,english] to the babel package. Then you can switch between them using \greektext and \latintext. \documentclass{minimal} \usepackage[greek,english]{babel} \begin{document} \greektext A whole paragraph in greek letters \latintext % If we only want a single letter, it might make sense to define commands: ...


18

You can create a Greek equivalent by taking the code of e.g. \alph from the file latex.ltx and modify it to get what you want. It also requires a slight modification to the subequations environment from amsmath. \documentclass[11pt,a4paper]{article} \usepackage[T1]{fontenc} \usepackage[latin1]{inputenc} \usepackage{amsmath} \makeatletter ...


17

If you just need a few words, then a simple approach can solve your problem: \documentclass{article} \usepackage[LGR,T1]{fontenc} \newcommand{\textgreek}[1]{\begingroup\fontencoding{LGR}\selectfont#1\endgroup} \begin{document} physics (from ancient greek \textgreek{f'usis}) \end{document} For longer passages, perhaps loading the polutoniko option with ...


16

For the case of units, you should use the siunitx package. \documentclass{article} \usepackage{siunitx} \begin{document} The average time of this event is \SI{50}{\micro\second}. \end{document} I guess I should mention the upgreek package. The average time of this event is 50~$\upmu$s. but this doesn't look as good.


15

To quote from The LaTeX Companion (p. 527), Those capital Greek letters not present in this table are the letters that have the same appearance as some Latin letter. Similarly, the list of lowercase Greek letters contains no omicron because it would be identical in appearance to the Latin o. Thus, in practice, the Greek letters that have Latin ...


13

I think the amount of work needed wouldn't warrant the advantages of using greektex at all. May I ask what exactly you're using it for? If I'm reading this correctly, it's a package which breaks exactly everything LaTeX is doing nowadays in the inputenc/fontenc area. The goal of greektex is to support a set of fonts called ywclr which are, AFAICS, only ...


12

The mbboard package provides blackboard bold Greek letters, and the letter you want is \bbmu. However, I don't know if you like how the symbol looks. (I don't like it, actually.) The mathbbol package with the bbgreekl option also provides (a possibly nicer version of) \bbmu: Use \usepackage[bbgreekl]{mathbbol} in the preamble. The disadvantage is that the ...


12

You have to assign a meaning to the Unicode characters you're using and that aren't set by default. Here's a way. \begin{filecontents*}{\jobname.bib} @article{concellon_synthesis_2006, title = {Synthesis of Enantiopure ({αS,βS)-} or ({αR,βS)-β-Amino} Alcohols by Complete Regioselective Opening of Aminoepoxides by Organolithium Reagents {LiAlH4} or ...


12

since many of the greek uppercase letters have the same shape as latin letters, they were not separately provided for tex, for two reasons: to save space (which was a real consideration in 1980); because it wouldn't be possible to tell the difference between the two shapes. the first reason is no longer relevant, of course, but the second is. go ahead ...


10

As @Seamus correctly points out, capital Rho has the same glyph as capital P. You can put \newcommand{\Rho}{\mathrm{P}} into your preamble to make the macro \Rho avialable. The usage of \mathrm is necessary if you use default math alphabets, because all greek capitals are typeset in up-right font. List of those Greek letters whose capital variants coincide ...


10

LuaLaTeX is your choice! Greek is possible without any adjustments. Hebrew, as it is a language from right to left, needs adjustments. Of course, you need to use \usepackage{fontspec} in the preamble (as is usual when using LuaLatex). Greek You need a font that supports all the accents. If your mainfont for latin text does not support them, you need to ...


8

This happens because in general math mode symbols are not available for inclusion in PDF bookmarks, etc. One approach is to use \texorpdfstring: \title{Some text \texorpdfstring{$\sigma$}{[sigma]}} which will use $\sigma$ in TeX and [sigma] for the bookmark. On the other hand, if you are using sigma for something non-mathematical, then consider using a ...


8

You don't need the isomath package: \DeclareMathSymbol{\Gamma}{\mathalpha}{operators}{0} \DeclareMathSymbol{\Delta}{\mathalpha}{operators}{1} \DeclareMathSymbol{\Theta}{\mathalpha}{operators}{2} \DeclareMathSymbol{\Lambda}{\mathalpha}{operators}{3} \DeclareMathSymbol{\Xi}{\mathalpha}{operators}{4} \DeclareMathSymbol{\Pi}{\mathalpha}{operators}{5} ...


8

Here is a MWE which compiles fine, using the command @daleif suggested \documentclass[a4paper,final]{article} \usepackage[T1]{fontenc} \usepackage[]{lmodern} \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \usepackage[]{siunitx} \usepackage{textcomp} \begin{document} Greek letter \textmu{} in normal text. Greek letter µ in normal text. The ...


8

You could use the package upgreek (part of the "was" bundle of LaTeX packages, where "was" is short for Walter A. Schmidt...), which provides the math-mode macros \upalpha, \upbeta, etc. \usepackage[Symbol]{upgreek} \newcommand{\eneutrino}{\ensuremath{\upnu_e}} \newcommand{\belectron}{\ensuremath{\upbeta^{-}}} ...


8

A problem is that \textbeta gets redefined, so the definition performed by textgreek is lost. Moreover, the Latin Modern fonts don't support Greek. Here is a hack, I guess there are better ways to do it. \documentclass{article} \usepackage[LGR]{fontenc} \usepackage{chemmacros} \protected\def\Chembeta{\text{\fontencoding{LGR}\fontfamily{cmr}\selectfont ...


7

As to why this happens: TeX handles accents over single characters differently, using the \skewchar of the font. Thus you get nicely aligned math accents only over single characters, and \dot{\bm{\phi}} is already a composed symbol. If you want double accents, you can use the amsmath or the accents package. However, both packages don't work together well ...


7

David's point is worth underlining: So basically, nobody would use a capital epsilon in a formula because it'd be visually indistinguishable from E. If you wanted to type something actually in Greek, then you would use one of the packages designed for that (search on CTAN for "greek" to get an idea of what's available). The Greek letters that are ...


7

Taking inspiration from T.D.'s excellent answer, I wrote a small package to add extra counter output types. As well as greek, it defines binary, hexadecimal, and "First, Second, Third...". morenum.sty on github moreenum on CTAN


7

I’ll throw this in here, as my search for a solution led me here, but my problem was another one. Using XeTeX and Latin Modern, I found that the greek letter μ does not work. However, the Unicode micro sign μ does work. Knowing that, I added \sisetup{math-micro=\text{µ},text-micro=µ}, and now all seems well. To clarify, use µ MICRO SIGN Unicode: U+00B5, ...


7

hmmmm The Unicode definitions for theta are: U+03b8 GREEK SMALL LETTER THETA U+03d1 GREEK THETA SYMBOL With the first of those being the one in your question, and the second being the more curly open one. However in the encodings set up by the ucs package a U+03b8 character will by default give you \texttheta (which would probably give you the right ...


7

Another way to do this: \documentclass[10pt,a4paper]{article} \usepackage[utf8x]{inputenc} \usepackage[greek,english]{babel} \begin{document} physics (from ancient greek \textgreek{φύσις}) \end{document} Here you can take advantage of LaTeX' ability to recognize Greek characters when babel loads the greek support module. utf8x (Extended UTF-8) encoding of ...


7

You have to define a Greek font. There are some choices: the default Beccari fonts, which however are modelled from the CM fonts, or the Greek Font Society ones. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[LGRx,T1]{fontenc} \usepackage{kpfonts} \usepackage[greek,english]{babel} ...


7

\varphi is a math symbol and requires math mode. Since \mathrm still "provides" math mode, \varphi doesn't complain. On the other hand, \text (from amstext; loaded by amsmath) is a macro that makes the correct choice in font size when switching to text mode - super convenient when typesetting test in exponents/subscripts. However, it still switches to text ...


7

It's not at all difficult, if you have an up-to-date TeX distribution. % !TEX encoding = UTF-8 \documentclass{article} \usepackage[LGRx,T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[greek]{babel} \begin{document} Η Αθήνα (Ἀθῆναι στα αρχαία ελληνικά και την καθαρεύουσα) είναι η πρωτεύουσα της Ελλάδας. Επίσης είναι η έδρα της Περιφέρειας Αττικής. ...


7

biber is designed to be able to recode into TeX macros automatically in exactly this situation. This is explained in the biber manual - the problem you face is a limitation of inputenc and PDFLaTeX which doesn't understand all of UTF-8. Load biblatex with the safeinputenc option and then call biber with the --output_safecharsset=full option. This will do it ...


7

I made this experiment. It's necessary to kill the action of \greektext in order to avoid setting the font encoding to LGR. \documentclass{article} \usepackage[polutonikogreek]{babel} \usepackage{multicol} \usepackage{fontspec} \setmainfont{Old Standard} \let\greektext\relax % very narrow columns! \columnsep=2cm \textwidth=\dimexpr7\columnsep+8pt\relax ...


6

\varphi, \varepsilon and so on. If you want to use one variant throughout and save yourself a few keystrokes, put \let\phi\varphi in your preamble. The kpfonts package contains slanted and upright greek letters for mathmode. psgreek provides some alternate Greek fonts.


6

The cheep method to solve this is to tell (pdf)latex to use grmn1000.pfb for all sizes: \documentclass[12pt]{article} \usepackage[polutonikogreek,english]{babel} \usepackage[T1]{fontenc} \usepackage{lmodern} \DeclareFontFamily{LGR}{lmr}{} \DeclareFontShape{LGR}{lmr}{m}{n} {<-> grmn1000}{} \begin{document} \textgreek{mikra'iti mouse~ion} ...



Only top voted, non community-wiki answers of a minimum length are eligible