Tag Info

New answers tagged

2

It was a known issue and had been fixed in xeCJK revision 737. Make sure you are using xeCJK version 2014/11/10 v3.2.15 or later. Update your packages when necessary. Sorry for the Chinese only document (again). BTW, for those who cannot compile the test document, see Korean characters scrambled [XeLaTeX; Noto Sans Korean]?


3

\documentclass{article} \usepackage{tikz,stackengine} \begin{document} \stackon[-5pt]{\resizebox{2in}{!}{Minimum Working Example}} {\begin{tikzpicture}\draw[color=cyan](0,0) circle (2);\end{tikzpicture}} \end{document}


3

One option is to use overlay for the tikzpicture; to achieve exact positioning, you could also use the tikzmark library to place some marks and then, using remember picture, to use those marks to place the tikzpicture at the desired location; a little example: \documentclass{article} \usepackage{tikz} \usetikzlibrary{tikzmark,calc} \begin{document} ...


2

You have to add support for Greek to begin with. The simplest way is to use babel: \documentclass[a4paper,10pt]{report} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[greek,english]{babel} % Definitions \usepackage{pdflscape} \usepackage[height=25cm]{geometry} \usepackage{timetable} \begin{document} \thispagestyle{empty} \begin{landscape} ...


1

Some suggestions: use the lite version \usepackage[draft]{hyperref} add a question mark after a link 網址:http://www.google.com/?。 add some invalid unicode character or special characters like zero width space. do the formatting your self. (why not? just two)


3

There seems to be a bug in fontspec version 2.4a, when defining the Renderer key. The following works; code is like in fontspec-xetex.sty and 3 has been changed into 4, as Graphite is choice number 4. \documentclass{article} \usepackage{fontspec} \ExplSyntaxOn \keys_define:nn {fontspec-renderer} { Renderer .choice_code:n = { \int_compare:nTF ...


5

The problem is the same as in Slovak (and Czech) babel gives problems with cmidrule and cline: the czech option to babel makes the - character into a shorthand and this disrupts the working of the pages option. Quick fix: \shorthandoff{-}\includepdf[pages=1,3-5]{foobar.pdf}\shorthandon{-} Better fix: \documentclass{article} \usepackage[czech]{babel} ...


0

I just copile this code and it work very good \documentclass{report} \usepackage{pdfpages} \begin{document} \includepdf[pages=-]{31roegel.pdf} \end{document} for the second problem use \documentclass{report} \usepackage{pdfpages} \begin{document} \includepdf[pages={1,5-}]{31roegel.pdf} \end{document}


6

Use fontspec if you want to use XeLaTeX: \documentclass{beamer} \usepackage{fontspec} \begin{document} \begin{frame} š and math $a+b=c$ \end{frame} \end{document}


3

Don't load the fonts with the relative path. Load them by their font names and specify the ExternalLocation key to point to your folder: \documentclass{article} \usepackage{fontspec} \setmainfont[ExternalLocation=Fonts/]{AGaramondPro-Regular.otf}% [Ligatures=TeX, BoldFont=AGaramondPro-Bold.otf, ItalicFont=AGaramondPro-Italic.otf, ...


0

Scribus can open a PDF document and list all the colors in it. As long as you're not using a ton of colors, it's easy to skim down the list and verify that everything is CMYK. In the current version (1.4.2), clicking Edit → Colors... will show you a color list. The icons in the second column of the list tell you color model of each color: four squares means ...


0

Here is a very simple solution which I use when I'm forced by editors to use the Times New Roman font, which have no Small Caps implemented. Since I want to leave the rest of my document intact, I simple redefine \textsc in the following way: \renewcommand{\textsc}[1]{{\footnotesize \uppercase{#1}}}


4

The fixfoot package uses the .aux file for saving the fixed footnote texts, so this requires protecting fragile commands. You can solve your issue by using \unexpanded (or putting \protect before every fragile command, among which \begin, \end and \item). \documentclass{article} \usepackage{fixfoot} \begin{document} \DeclareFixedFootnote{\footone} ...


3

This is a problem similar to Set hyphenation with polyglossia but it requires a different approach, because English is treated differently: only one set of patterns for English is used by Polyglossia and it's set at begin document. \documentclass{article} \usepackage{polyglossia} \setmainlanguage[variant=uk]{english} \newcommand{\sethyphenation}[2]{% ...


4

It appears the main language is set up at begin document, it is still US English in the preamble, it works if you delay the setting: \documentclass{article} \usepackage{polyglossia} \setmainlanguage[variant=uk]{english} \begin{document} \hyphenation{a-bun-dance} A abundance abundance abundance abundance abundance abundance abundance abundance ...


3

I don't know the answer for first two questions, as I don't use XeTeX, but I want to provide option for the third question. Thanks to Arthur's code I was able to create basic package for unicode normalization in LuaLaTeX. The code needed only slight modifications to work with current LuaTeX. I will post only main Lua file here, full project is available on ...


1

I usually create RFC documentation for personal usage. To achieve similar format, you can use biblatex package with style=alphabetic and add \DeclareFieldFormat{labelalpha}{\thefield{entrykey}} after loading biblatex package. \documentclass{article} \usepackage[backend=bibtex, natbib=true, style=alphabetic]{biblatex} ...


3

It seems that the crucial difference is that in a current texlive bidi is Package: bidi 2015/02/17 yours is a year older. You should at least update bidi, it apparently has fixes to address this issue.


12

Please ask the developers on the XeTeX mailing list.


1

This kind of problems generally comes from the fact that the LaTeX editor is not configured to the suitable input encoding. In this peculiar case (a XeLaTeX file, and XeTeX interpreting the input as UTF-8 by default), it means that the editor must be configured to UTF8-Unicode input encoding.


6

TeX does not hyphenate the first word of a paragraph, you need to add a space before. Also alignment is improved if you top-align the parboxes. never end a paragraph with \\ \documentclass[a4paper,parskip]{scrartcl} \usepackage{polyglossia} \setmainlanguage{german} \begin{document} \parbox[t]{24mm}{\hspace{0pt}Besichtigungszeiten} \parbox[t]{30mm}{10 bis ...


3

There are two issues here: the first is finding a font that actually contains the glyphs you want, and the second is getting them to appear where you want them. Here are the currently available OpenType math fonts that offer multiple weights: Lucida Bright Math offers Regular and Demibold Minion Math offers Regular, Medium, Semibold, and Bold (each in ...


6

Justified paragraphs are normally set with indentation and hyphenation using a suitable set of hyphenation patterns: \documentclass[a4paper,14pt,final,draft]{extreport} \usepackage[left=3cm,top=2.0cm,right=1.5cm,bottom=2.7cm]{geometry} \usepackage{changepage} %\usepackage[none]{hyphenat} \usepackage{showframe} \usepackage{ragged2e} ...


0

The ultimate answer to your question is: When you are not satisfied with the look of the available fonts, design your own! But font design is hard and tedious work, you probably don't have the time needed left given your other duties in life. There is a shortcut: When you want to mix characters from different fonts, you can create a virtual font and use ...


0

On further investigation, it turned out to be a bug in xdvipdfmx and is fixed, thanks to Akira Kakuto.


0

Well, this worked for me. \documentclass[10pt]{article} \usepackage{mtpro2} \usepackage{fontspec} \setmainfont[Ligatures=TeX,Scale=1.1]{Baskerville} \begin{document} \noindent For any integer $n$ and prime number $p$, we want to solve $x^2 - ny^2 = p$. \end{document} Bringing down the font size to 10pt, but then scaling it up by 110%, leaves you with an ...


2

This is (unfortunately) not working with the 28 Days Later font, since the xelatex compilation breaks with some error 11. The principal way is to use \setmainfont{fontname}[options] The manual of fontspec states, that following font options must be set if the font is specified by filename (and not fontname) BoldFont ItalicFont BoldItalicFont Since 28 ...


5

Use \setmainfont{Fontin Regular}[SmallCapsFont = Fontin SmallCaps] (newer syntax), or \setmainfont[SmallCapsFont = Fontin SmallCaps]{Fontin Regular} (older syntax).


2

Typeset the mock caption in a box that's discarded: \documentclass{memoir} \usepackage{graphicx} \newsubfloat{figure} \begin{document} \chapter{Test} \ref{X} \begin{figure}[htp] \centering \subbottom[some name]{\includegraphics[width=5cm]{example-image-a}\label{somelabel}} \setbox0=\vbox{\caption{somecaption}} \end{figure} \begin{figure}[htp] ...


5

This has nothing to do with using the explicit option. You have to add a \titleformat for unnumbered chapters, e.g. \titleformat{name=\chapter,numberless}[display] {} {} {0pt} {\normalfont\Huge\bfseries #1} MWE %!TEX TS-program = xelatex %!TEX encoding = UTF-8 \documentclass{book} \usepackage[explicit]{titlesec} \usepackage{titletoc} ...


1

It was a bug in XeTeX and was fixed. See http://tug.org/pipermail/xetex/2015-February/025727.html


-1

Use ^{\prime}, e.g. \documentclass{article} \usepackage{amsmath} \usepackage{mathspec} \begin{document} \begin{align*} &f^{\prime}(x) = x^2\\ &f^{\prime \prime}(x) = 2 x \end{align*} \end{document}


7

This seems to do; you have to set also a different \baselineskip, though. % Enable right to left typesetting \TeXXeTstate=1 % define a font (this is one I have) \font\frmnorm = "Scheherazade" at 24pt \let\rm = \frmnorm \uselanguage{farsi} % At the start of a paragraph remove the indentation box then % start right to left typesetting, after reinserting the ...


6

You're forgetting the proper mathspec way: \documentclass{article} \usepackage{amsmath} \usepackage{mathspec} \setmainfont{Gotham Book} \setmathrm{Gotham Book} \setmathfont(Digits,Latin){Gotham Book} \begin{document} \begin{align*} "f'(x) &= x^2 \\ f'(x) &= x^2 \\ f\,'(x) &= x^2 \end{align*} \end{document} With the italic font (that I ...


0

It seems that the problem lies in a missing / at the end of the absolute path. Note as well that the default font features were wrong. I've cleaned your MWE, and it should work. Change the absolute path and the image name to test. \documentclass[11pt,a4paper]{article} \usepackage{grffile} \graphicspath{{/home/test/images/}} % Change the path ...


2

friggeri-cv.cls downloaded at http://www.latextemplates.com/template/friggeri-resume-cv. To have a break in your email address, you can simply add a space in it: \href{mailto:songlin.yang@mail.utoronto.ca}{songlin.yang@ mail.utoronto.ca} MWE: \documentclass[]{friggeri-cv} \addbibresource{bibliography.bib} \begin{document} \header{Songlin}{Yang} ...


1

You want to use newtxmath with the libertine option: \documentclass{standalone} \usepackage[libertine]{newtxmath} \usepackage[no-math]{fontspec} %\defaultfontfeatures{Numbers=OldStyle} \setmainfont{Linux Libertine O} \setsansfont{Linux Biolinum O} \setmonofont{Linux Libertine Mono O} \begin{document} \begin{minipage}{6cm} ...


1

I have no problem with xelatex and latex->dvips->ps2pdf \documentclass[landscape,a4paper]{scrartcl} \usepackage{geometry} \usepackage{pstricks} \begin{document} \noindent \begin{pspicture}[showgrid](0,0)(\textwidth,10) \psframe*[linecolor=blue!30](0,0)(\textwidth,10) \psline(\textwidth,10) \end{pspicture} paperwidth: \the\paperwidth paperheight: ...


5

Use a font that supplies the glyphs: \documentclass{article} \usepackage{fontspec} \setmainfont{Linux Libertine O} % or whatever \newfontfamily{\currencies}{FreeSerif}[Scale=MatchUppercase] \begin{document} {\currencies ден ₪ ₹ ع.د ₲ ฿ ₩ ¥ ؋} \end{document} A different approach (but just for single glyphs) that takes the glyph from the current font, ...


3

Since you compile with XeLaTeX, you have a number of currency symbols in the font fontawesome. The package fontawesome helps using this font, unfortunately it defines commands for version 3.1 of the fonts, which had no currency symbols. You can download the latest version (4.3) of the fonts here and use the preamble of the following code; which defiines ...


0

I've done this for myself (in accordance with the suggestions above: #!/bin/bash -e STATUS500="Status 500 internal server error" STATUS404="Status 404 file not found" function removeTempDirectory { [ -d "$DIR" ] && rm -Rf $DIR } function die { removeTempDirectory printf "$*\n\n" 1>&2 trap - EXIT exit 1 } ...


4

The cause of the problem is that the bidi package redefines tikzpicture and pgfpicture in a way which puts them into a paragraph. The following also does not work properly with your MWE, if bidi is enabled: Lorem ipsum before \tikz\node[draw] {text}; lorem ipsum after One could reset pgfpicture locally to its original behaviour. But, of course, this would ...


1

It seems that \sloppy is the only option. as explained in here.



Top 50 recent answers are included