Tag Info

0

amstex makes @ active for usage in the commutative diagram macros and other utilities. You can disable this behavior when loading opmac and restore it later. \input amstex % save the category code of @ \chardef\savedatcatcode=\catcode@ % restore the standard code \catcode@=12 \input opmac % restore amstex category code of @ \catcode`@=\savedatcatcode ...

4

The “contextual” feature must be explicitly turned on (if I remember correctly, it wasn't some time ago). What you get are warnings that the feature is not available for the upright fonts, but one can enable it just for the italic ones. \documentclass[10pt]{article} \usepackage{fontspec} \setmainfont[ Ligatures={Common, Rare}, Alternate=1, ...

1

There are two problems: \Box is not defined in basic latex. You have to load latexsym for that (compatible with unicode-math, it seems). The other problem is the last version of the hobby library package. You can either not load it, or use a fix that you can download from github. For the last solution, described as ‘quite possibly not a good fix’, you ...

2

Pandoc uses a template which, when used with XeTeX calls mathspec.sty; mathspec.sty calls fontspec.sty with some options. If something else calls fontspec.sty then there will be a clash, and tufte-handout.cls does so. One solution would be to edit the template Pandoc uses. Taking out mathspec.sty would do the trick.

2

Your code has two else-if statements, but there are no if statements. The first eIF should be If. And I think the second one also should be If. Also pay attention to the lowercase f in both \If and \eIf. By the way, there is no need in using flushright or flushleft and XePersian fix all this automatically. \documentclass{article} ...

0

theindex is basically an environment that may be a list, but also may not. The .ist declares how the preamble looks like and how a \item is interpreted. E.g., as LaTeX default, \item is \n\item, as defined by item_0. You can change the foraging (at least) at two locations: You write your own .ist file. For a documentation, see e.g., makeindex' manpage. ...

6

Something like this? The style is 'very' special, in my point of view! \documentclass[oneside]{report} \usepackage{fontspec} \setmonofont{Bitstream Vera Sans Mono}[Scale=MatchLowercase] \usepackage[margin=2.5cm]{geometry} \usepackage{listings} \usepackage{tcolorbox} \tcbuselibrary{breakable} \tcbuselibrary{skins} \tcbuselibrary{listings} ...

0

I doubt that is a good idea to use a text font as math font. A math not only need symbols but also quite a number of other information. Imho it is better to use as base a real math font and to exchange only single symbols with symbols from a text font. \documentclass[a4paper]{scrartcl} \usepackage{unicode-math} \setmathfont{Latin Modern Math} ...

0

You can do it with unicode-math: \documentclass[a4paper]{scrartcl} \usepackage{unicode-math} \setmainfont{Old Standard} \setmathfont{Old Standard} \setmathfont[range=it]{Old Standard Italic} \begin{document} AV $A= \sum_{i=1}^n V_i\oplus\alpha^\varkappa$ \end{document}

3

The amsmath package is not loaded by default, but it's not the problem. You can just load fontspec with the no-math option: \documentclass{article} %\usepackage{amsmath} % optional \usepackage[no-math]{fontspec} \usepackage{musixtex} \begin{document} No error about \breve is raised with or without amsmath and the definition of \breve in the document is ...

1

As seen in the comments above (particular Ulrike Fischer's), TikZ is compatible with pdflscape. It is just that the order in which the packages are loaded is important, because tikz applies a patch to everyshi (and also atbegshi because it is an extension of everyshi). pdflscape loads atbegshi, therefore it is important to load it after tikz to ensure that ...

2

In the end I went with \parshape instead of \shapepar, which didn't work in TikZ. So I used the background package for background image and picture enviroment for absolute positioning. \documentclass{article} \usepackage[a6paper]{geometry} \usepackage{graphicx} \usepackage{fontspec} \usepackage{background} \usepackage{pst-barcode} ...

4

XeTeX can use the powerful method of mapping files. Locate on your TeX system the file tex-text.map and copy it into the working directory as baskerville-dash.map. Open the file with a text editor and modify it to look like ; TECkit mapping for TeX input conventions <-> Unicode characters LHSName "baskerville-dash" RHSName "UNICODE" pass(Unicode) ...

4

Since you're using the "Monotype Baskerville" font, you actually have a choice of two weights for the em-dash symbol: \char"0214 (the default) and \char"0215. The former glyph is indeed extremely thin; the latter is a lot thicker, and it may even be too thick for your taste. Your call. If you like the latter form, you could set up a macro via an instruction ...

0

If your objective is to squeeze a given document into as few pages as is possible -- put differently, if your objective is to save as many trees as you can -- you should seriously look into loading the savetrees package. If you load it via the instruction \usepackag{savetrees} the following actions will be taken: The page margins are set to 1.5cm -- ...

0

Try \usepackage[cm]{fullpage}. That should give you a 1.5cm margin everywhere, instead of the 1in default (about 1cm extra everywhere).

5

XeTeX is the engine. LaTeX is the format. When you compile with xetex, the LaTeX format is not loaded so things like \documentclass are not defined. You can compile this way if your document is not using LaTeX but plain TeX. The executable is the same, but the name you call it by matters. This is because the executable tests to find out what name it has ...

5

It's a bit late at night for hacking shapepar internals but it is easy enough to fix this manually, and getting a good position perhaps needs manual control anyway to interact with the border: \documentclass[border=0,margin=0,multi,tikz]{standalone} \usepackage{graphicx} \usepackage{fontspec} \usepackage{tikz} \usepackage{shapepar} ...

3

The impossibility of using encTeX with XeTeX and LuaTeX results from sections 2 and 3 of the manual. The encTeX extensions is only able to emulate UTF-8 input, while still reading a file one byte at a time. It does so when reading the bytes, so for example something like \mubyte \foo ABCD\endmubyte can be declared, which changes ABCD into \foo before ...

2

OK, while I'm not sure, whether I can use enctex with XeLaTeX (probably not) I found xevlna – XeTeX / XeLaTeX package with similar functionality as encxvlna for TeX / LaTeX.

4

OPmac includes ams-math.tex from csplain package in order to set math (because the default math setting from plain TeX is very poor and it doesn't allow the font size changing simply). IMHO, there is nothing bad, if you call OPmac and then another macro for math setting (mtp2.tex in this example). Of course, the default math setting (by OPmac) is ...

2

You can try the getfiledate package and its \getfiledate command -- backdraw: You have to use specifiy the filename twice this way and it's using a minipage \documentclass[11pt]{article} \usepackage{graphicx} \usepackage{getfiledate} \begin{document} \begin{figure*}[ht] \includegraphics[scale=0.5]{schroedinger} \caption{Illustration made on ...

3

The problem is that navigator doesn't take precautions against category code changes and uses in a couple of places ", which the German module of polyglossia makes active. This of course confuses the macros and the result is the error you see. Load navigator before setting languages and all should be OK. \documentclass{article} \usepackage{polyglossia} ...

1

This is because versions (less than or equal to 18.3) of bidi package checked that if pgf package is loaded and then the bidi package would modify pgfpicture environment; this is what tikzpicture uses. However, beamer loads pgfcore package so the bidi package changes were not applied. In version 18.4 of the bidi package, some improvements are made regarding ...

1

This is fixed in version 18.3 of the bidi package. You can even have it RTL: \documentclass{article} \usepackage[most]{tcolorbox} \usepackage{bidi} \setRTL \begin{document} Lorem ipsum before \tcbox[size=tight, on line]{some tcb text} lorem ipsum after \end{document} which produces the following output:

2

Fortunately ocgx2 also works with XeLaTeX.

0

You can use include graphics for example: \begin{aside} % In the aside, each new line forces a line break \includegraphics{qr_code} \section{contact} I have not tested yet but perhaps you'll need to add \usepackage{graphicx}. The aside environnement create the part with contact, languages and programming. So If you add a picture in the code before the ...

0

This is not bidi package bug; it is polyglossia package bug. The bug was reported to the author of the polyglossia package four years ago with the solution but it has not been fixed to this day. This question is indeed a duplicate question since it has been asked here before. \if@Latin is only a conditional that bidi package provides so that packages like ...

0

If you need to change the margins of the second page of your letter, you need to do something like \KOMAoptions{DIV=20}. I don't know whether you can put that into the KOMAvar nexthead. To change the margin for some lines, use the environment »addmargin«, which is included in KOMAscript.

1

I've copied this from the ModernCV Sourcefile: {{\null\hfill% \begin{minipage}{\quotewidth}% \centering% \quotestyle{"Hello this is my quote"}% \end{minipage}\hfill\null\$2.5em]}}% Place this behind the \makeletterclosing might solve your problem 0 Maybe the easiest way is as follow. In the example 'Crimson Text' font does not have smallcaps, and 'Crimson' have some. The scale is only to have things looking better in this case: \documentclass{article} \usepackage{fontspec} \setmainfont{Crimson Text} \newfontinstance\scshape[Letters=SmallCaps,Scale=1.15]{Crimson} \begin{document} Text \textsc{Text} ... 7 This seems to be a bug in TeX Live scripts, which failed to trigger format creation after the last upgrades to the LaTeX kernel. You can fix the thing manually by sudo fmtutil-sys --byengine xetex --byfmt latex Report the issue to the TeX Live mailing list. Update According to the messages in the mailing list (starting from ... 1 The next code works with xelatex and latex too: \documentclass{bookcover} \usepackage{pst-barcode} \begin{document} \makeatletter\TP@absposfalse\makeatother\newgeometry{left=0em,top=-1em} % fixing code \setbookcover{fgfirst}{back}{ \vfill \centering \parbox[b][1in]{1.5in}{\psbarcode{978-85-85818-86-9}{includetext width=1.5 height=1}{isbn}} \vspace{5mm} } ... 3 You can't run documents using unicode-math with the legacy latex. The only possibility is with XeLaTeX or LuaLaTeX, that are included in any recent TeX distribution. 6 Here are some suggestions: Instead of using fullpage, use the geometry package to specify your margins. While fullpage necessarily sets all the margins to be 1in, you can tighten these using \usepackage[margin=.5in]{geometry} This allows for more content to fit on every page. Try adding \enlargethispage{2\baselineskip} to add 2 more lines on any ... 0 With a lot of help from other people here a solution. xelatex should be called with -shell-escape. This actives \write18. I don't know what this means but it works. Please feel free to edit this answer to add more technical details. 3 It's what I think to be a bug in amstext-xetex-bidi.def (part of the bidi bundle) that does \ProvidesFile{amstext-xetex-bidi.def}[2013/04/04 v0.1 bidi adaptations for amstext package for XeTeX engine] \def\textdef@#1#2#3{\hbox{{% \everymath{#1}% \let\f@size#2\selectfont ... 6 That looks like a bug in bidi (egreg thinks) but you can force things back with \beginL \documentclass{article} %\usepackage[T1]{fontenc}% don't use fontenc with xetex \usepackage{amsmath} \usepackage{polyglossia} \setotherlanguage{hebrew} \setdefaultlanguage{english} \showoutput \begin{document} \[\{ x\,|\,\text{\beginL one two three\endL}\}$ ...

2

The syntax you use requires also the quotes library. You should also load the babel library. \documentclass{article} \usepackage{fontspec} \usepackage{polyglossia} \usepackage{mathtools} \usepackage{tikz} \usetikzlibrary{patterns,quotes,babel} \setdefaultlanguage{italian} \begin{document} \begin{tikzpicture}[line width=0.5pt, >=latex, scale=2] ...

1

unicode-math is already checking to see if \npropto is defined (it is not, in this case) and only falls back to overprinting if it is not defined. It uses the original definition (saved as \__um_oldnot:) which isn't really appropriate here, rather than redefine \not to do something else as a fallback, cheat a bit and redefine the saved \__um_oldnot: to ...

4

You need to put some specific metadata inside resulting pdf with \special command, add some info with hyperref package and then compile with xelatex option -output-driver="xdvipdfmx -V 3". Look at example: % !TeX program = xelatex %%%%Needs to be compiled with commandline: "xelatex.exe -output-driver="xdvipdfmx -V 3" %.tex" % as PDF 1.3 required by PDF/X ...

0

Some process (confirmed in comments to be python) had mis-interpreted the backslashes in a TeX string so converting \b in \begin to a backspace character control-H. Fixing the pipeline to have an extra layer of quoting should fix the problem.

0

Thank you all for the comments and suggestions. Here's what I found that worked. With any image in Photoshop CC 2015, select Save As. Choose Photoshop PDF. I also tick the Save As a Copy box so it doesn't save over the original. When I click Save, I get a dialog box that states the settings you choose n the Save Adobe PDF dialog can override your current ...

1

As stated by egreg you should drop your distro package and replace it with a standalone texlive installation. You will be able afterwards to update your packages whenever you want, and won't have to wait the packager to do it. You'll be able to use the great tlmgr program to search packages – very often not bundled by linux distro texlive packages. You'll ...

4

xdvipdfmx in the TeX Live 2015 rejects by default to include PDF images of version newer than 1.5. The next version of xdvipdfmx does not reject such kind of images. As a workaround until you obtain the next xdvipdfmx, use an option --output-driver="xdvipdfmx -q -E -V 7" For example, xelatex --output-driver="xdvipdfmx -q -E -V 7" filename.tex

5

You can fix the height of the character by using \halign instead of \accent: \documentclass{article} \usepackage{mathspec} \setmainfont[ Extension = .ttf, % I only have TrueType UprightFont = *-Regular, ItalicFont = *-Italic, BoldFont = *-Bold, BoldItalicFont = *-BoldItalic, UprightFeatures = {SmallCapsFont = *SC-Regular}, ...

2

In July I posted this problem on the KOMA-Script Forum and was told that the new version of KOMA (3.18 and later) set pagesize=auto as a default. Using pagesize=false reverts to the old behaviour, which works correctly with the crop-package.

6

It is a problem with scrbook, with book the example works fine. In the end it boils down to the fact that (newer versions of) scrbook inserts a \special at \begin{document}. One can reproduce the problem with this code: \documentclass{book} \usepackage[paperwidth =10cm,paperheight=20cm]{geometry} \AtBeginDocument{\special {papersize=\the \paperwidth ,\the ...

0

Turns out I have messed up the order of definitions in the class, in an attempt to modify and "tidy up" the class file. So that the definition of \headingfont comes after it's first appearance... Serves me right for not doing my reading in due time. My thanks go to Johannes_B, for figuring out whats wrong and helping out over the chat.

8

I have the following crop.cfg. Try that. % crop.cfg for xetex - JK - 2006-06-07 % This attempts to persuade crop.sty to work with xetex \@ifundefined{XeTeXversion}{}{ %% Use the "pdftex" driver (i.e., \pdfpagewidth, \pdfpageheight) with XeTeX \def\CROP@reqdriver{pdftex} %% make crop.sty believe this is valid \@ifundefined{pdfoutput}{ ...

Top 50 recent answers are included