Tag Info

Hot answers tagged

8

The problem is that A[Aufschlussnummer] is considered as a single entity with respect to hyphenation and the [ blocks any other hyphen past it. The obvious workaround is to add a space between A and the bracket. If you don't want it, then a different strategy is needed: define \newcommand{\scheme}[2]{\textit{#1\nolinebreak\hspace{0pt}[#2]}} and input ...


4

First of all, whatever you are going to achieve, it won't work with ‘classical’ TeX. This is due to a design decision of Knuth – today we know that this was unfortunate, but at the time of writing TeX this was far less obvious: Hyphenation patterns are applied to glyph indices and not to input character codes. Since there are more than 256 Khmer ligature ...


4

The problem can be solved in a different way, which requires loading the font definition file manually and changing the hyphenchar before any font of that family is used: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{lmodern} \makeatletter \input{t1lmtt.fd} \@namedef{T1+lmtt}{} \makeatother \begin{document} \parbox{0pt}{\ttfamily ...


4

Franks answer is missing an important point: When you declare a font family in your preamble latex no longer tries to input the .fd-file and so all other font declarations are lost. You can input them before doing the change: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{lipsum} \makeatletter \input{t1lmtt.fd} ...


4

You can use babel with English and Greek. But you must define what language you use. You can do this with \selectlanguage and \foreignlanguage Example: \documentclass[12pt,greek,english,]{article} \usepackage[top=0.7in, bottom=1.2in, left=0.8in, right=0.8in]{geometry} \setlength{\parindent}{0cm} \usepackage{fontspec} \usepackage{xltxtra} ...


3

\documentclass{article} \setlength\textwidth{4cm} %\newcommand\dup[1]{\;{#1}\discretionary{}{\hbox{$#1$}}{}\;} \relpenalty=10000 \newcommand\dup[1]{#1\discretionary{}{\hbox{$#1$}}{}}% improved version from wipet \begin{document} \noindent X\dotfill X $ A \dup\subset A \dup\subset A \dup\subset A \dup\subset A \dup\subset A \dup\subset A \dup\subset A ...


2

I used patgen for Georgian. Georgian UTF-8 is 3 bytes long. so when patgen asks for Number of chars I use 3*N1, 3*N2 Where N1 and N2 are for one byte chars what patgen expects :) I had no succes with opatgen (unicode patgen)/was unable copile it for windows. This is nice program and library. Unfortunately not updated long time/ another way is to convert ...


2

You need to load fontspec. fontspec is a package for XeLaTeX and LuaLaTeX which makes it easier to select and use fonts with those engines. In particular, it defines the commands \setmainfont and \setsansfont. If you do not load the package, TeX does not know what those commands mean and it will complain that they are undefined control sequences. So if you ...


1

You could load the url package -- I suggest you set the options spaces, obeyspaces, and hyphens when loading the package -- and use that package's \path macro to typeset the long path name. \documentclass{article} \usepackage[hyphens,obeyspaces,spaces]{url} \begin{document} \noindent ...



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