Tag Info

New answers tagged

0

Since you are specifically looking for SQL type functionality I suggest you explore the datatool package. The MWE reads the CSV file MyData.csv and then searches for "one more sentence" and "three more sentences": Notes: The filecontents package was used to set up a file to read for this test case. It is not needed in you actual use case. I have used ...


1

You can specify features just for Italic using fontspecs ItalicFeatures key: \setmainfont{...}[Ligatures=TeX, ItalicFeatures={...}, %^^^^ ItalicFont={....}, ]


5

You get the same error if you try to use >{\fontspec...} directly in the tabular. It is not a good idea to set up a font in this place (apart from the error, fontspec would have to do it again in every cell). Setup the fonts first and then use the normal font commands instead: \documentclass[12pt, a4paper]{article} \usepackage{fontspec} ...


1

There are several problems from (plain or primitive) TeX point of view when creating PDF outlines. The primitive level depends on used machine. For example, in pdfTeX, you have to use \pdfoutline primitive but when you plan to process dvi to pdf (for example in XeTeX), then there is \special{pdf:outline...}. It means that you need to implement a low level ...


2

Both the .ttf fonts, called Linux Libertine, and the .otf fonts, called Linux Libertine O, work fine on my Windows 7 system. \documentclass{article} \usepackage{fontspec} \setromanfont[ BoldFont = {Linux Libertine Bold}, ItalicFont = {Linux Libertine Italic}, BoldItalicFont = {Linux Libertine Bold Italic} ]{Linux Libertine} \begin{document} ...


0

Use \documentclass{article} \usepackage{libertine}% detects itself the used engine pdftex, xetex, luatex \begin{document} \textit{1 foo} \textbf{\emph{1 foo}} \textbf{1 foo} \end{document} The package libertine does the correct font setting for you. Install the package from CTAN and the fonts too. Then you have all in the right place.


1

Your code works fine. I get the following result


2

ruby package is not implemented correct. I think this code piece will solve the problem: \usepackage{ruby} \let\oldruby\ruby \def\ruby#1#2{\oldruby{#1}{#2}\futurelet\next\addCJKglue} \def\addCJKglue{\ifx\next\ruby \CJKglue \fi} See also Displaying pinyin over Chinese characters, without impacting word spacing


6

I recommend using the navigator package, which works with LaTeX, ConTeXt and Plain TeX. Outlines are created with \outline[<options>]{<level>}[<name>]{<title>} where <options> is fairly self explanatory, <level> is a number representing how deep in the hierarchy the outline is, <name> is an internal name used to ...


1

The reason is probably that since version 10.9, MacOSX has Charter as a .ttc font, and you can't have it on a Windows system. The charterpackage on CTAN only has type 1 version. But you can use the xcharter package, an extension to charter with oldstyle proportional figures, small caps in all shapes/weights and superior figures. It has all the necessary ...


2

Using the latest TeX Live 2014 (with xeCJK 2014/06/20 v3.2.13), there is no error. It is a very old bug of xeCJK, and is roughly fixed since TeX Live 2013 (with xeCJK 2013/05/28 v3.2.1). There may be still some special situations that xeCJK cannot handle well, but you can hardly meet the issue now. Anyway, it is always preferred to use an empty line to ...


3

The exact error is pretty arbitrary, it's just that the expansion has taken a wrong path and so generates an error first time it tries something really illegal. You see the error by changing from tex to etex in formats with the etex extensions activated (except latex, oddly enough) the register allocation macros are updated because there are 32768 rather ...


1

After checking the recently updated packages, I found ghostscript was updated from 9.14-1 to 9.15-1, which is very suspicious as I could find any problem exists in Texlive 2014 itself. After downgrading, this problem is solved. I am not sure what is wrong with this new ghostscript. Xelatex must called some postscript functionalities from ghostscript.


3

If you inspect your font files in Windows Explorer, you will indeed see that the fonts are called CMU Bright Medium and CMU Bright Medium Oblique. Since fontspec can't find those fonts, it means that those names are wrong. If you look at the font name in FontForge, for example, you can see that the actual font name of CMU Bright Medium is CMU Bright ...


2

Here's the relevant part of dvipdfmx.cfg: 137 %% In TeX Live, we use the rungs wrapper instead of ps2pdf, becuse we 138 %% must omit the -dSAFER which ps2pdf specifies: in order for pstricks 139 %% to work with xetex, 140 %% /usr/local/texlive/*/texmf-dist/dvips/pstricks/pstricks.pro (for 141 %% example) needs to be accessed. (Also, it is better to use our ...


0

Now I solved my problem with your help: I installed GS9.10, then copyed the files in from C:\Program Files (x86)\gs\gs9.10\bin to C:\texlive\2014\tlpkg\tlgs\bin. Thats all I needed, now the results are correct. Thank you all for the help!


2

The problem is GhostScript. With the version 9.10 it works, with the current version 9.15 it doesn't work. Also with some other GS versions. I installed GhostScript from the source into /usr/local/src: wget http://downloads.ghostscript.com/public/ghostscript-9.10.tar.gz tar -xvzf ghostscript-9.10.tar.gz cd ghostscript-9.10 ./configure make sudo make ...


6

The command \' becomes \EU1-cmd\' \EU1\' and then \EU1-cmd checks if the combination \\EU1\'-. is defined; the control sequence has \EU1\'-. as name and can be checked by \expandafter\show\csname\string\EU1\string\'-.\endcsname which gives > \\EU1\'-.=macro: ->\TIPAaccent {\textdotacute }. Now the problem follows, because \TIPAaccent wants two ...


0

These packages should be included in a full LaTeX distribution. They have to be properly installed, not just copied. I would start with a fresh download of the TeXLive installer from TUG and install a full distribution. If necessary, use the installer options to do a portable installation on removable media.


1

I found a solution which seems to work: \let\sp^ \catcode`\^=\active \gdef^#1{\sp{\hspace{0.06em} #1}}


4

The problem is the \underbar command in your moredelim setting: With unicode-math it is a math command. You could use e.g. the ulem package and \uline instead: \usepackage{ulem} ... `moredelim=[is][\uline]{_}{_},`


2

install the font in /usr/local/share/fonts or ~/.fonts/. For xetex run fc-cache -fv and for luatex luaotfload-tool --update --force. Maybe you have to run it as root, then use sudo


1

Run it with xelatex \documentclass{article} \usepackage{unicode-math} \usepackage{libertine} \def\dWDTilde#1{\widetilde{\widetilde{#1\mkern0mu}}} %\setmathfont{XITS Math} \begin{document} foo $\dWDTilde{\mathscr A}$ foo \end{document}


0

I modified my preamble, following many suggestions you made. Therefore, this is my new preamble and... it works nice : \documentclass[12pt,a4paper,footinclude=true,twoside,headinclude=true]{scrbook} \XeTeXinputencoding iso-8859-1 \usepackage{setspace} \usepackage{hyperref} \usepackage{epigraph} \usepackage{scrpage2} \usepackage{graphicx} %% For ...


1

Macs have used unicode fonts for years. I'd try to isolate your problem by setting up a simple document like the one below. Check that it compiles and displays the font(s) correctly, then incorporate the settings into your file(s). \documentclass{article} \usepackage{fontspec} \setmainfont[Ligatures=TeX]{Minion Pro} \begin{document} The quick brown fox ...


1

I realize that this post is old, but for future readers' sake, I thought I'd point out that I was able to create ligatures using Linux Libertine 5.3 and XeTeX 3.14159265-2.6-0.99991 (TeX Live 2014/W32TeX) (preloaded format=xelatex 2014.7.31) that are copyable and searchable when viewed in Adobe Reader 11.0.08. \documentclass{article} \usepackage{fontspec} ...


-5

This code is working !!!!!! \documentclass{memoir} \begin{document}% \font\myfont = "Wingdings" {\myfont \XeTeXglyph214} \end{document} I hope it will help people :) . http://distrib-coffee.ipsl.jussieu.fr/pub/mirrors/ctan/info/xetexref/xetex-reference.pdf


2

you would like presentation like this First you must define Sans Serif Font ( for headings ) with \newfontfamily\arabicfontsf[]{Name of font} Second To put frametitles on the right you can use \setbeamertemplate{frametitle}[default][right] you must put your Persian text inside \textarabic{text} or with environment \begin{Arabic} \end{Arabic} (for ...


1

Please see this answers and this. I apply the latter in your document on \author as \usepackage{fontspec} \usepackage[utf]{arabxetex}%this line added \usepackage{polyglossia} \setmainlanguage{english} %\setotherlanguage{arabic}%this line removed . . . \author[\textarab{نویسنده}]{\textarab{نویسنده}} and "نویسنده" appears in my output. of course this ...


3

Here, I put it all the way to the right. Is that desired? This was the key line: \section{Selected Projects\hfill\scriptsize\textcolor{gray}{small text goes here}} Here is the MWE: \documentclass[12pt,letterpaper,sans]{moderncv} % moderncv themes \moderncvstyle{banking} % style options are 'casual' (default), ...


2

You have to define a monospaced font that has Greek characters. For instance \documentclass[12pt]{article} \usepackage{fontspec} \usepackage{alltt} \setmainfont[ Extension=.ttf, UprightFont=*, BoldFont=*bd, ItalicFont=*i, BoldItalicFont=*bi, ]{times} \setmonofont{cmuntt.otf} % or any other monospaced font supporting Greek \begin{document} ...



Top 50 recent answers are included