I need to draw (simple) movement arrows in linguex examples. I would normally use the tree-dvips package for that (as in the LaTeX example below) but this time I must use XeLaTeX, which is incompatible with tree-dvips. What is an alternative that you can recommend? Note that I do not need to use arrows more complex that what's in the example.  \documentclass{article} \usepackage{linguex} \usepackage{tree-dvips} \usepackage{linguex}  \begin{document}  \ex.    ta\node{tgt}rget {} \dots {} \node{trace}t    \abarnodeconnect[-9pt]{trace}{tgt}  \end{document}
11902
Is it possible in gb4e to gloss an example AND have a movement arrow in the example.  I'm currently using gb4e, and I want an arrow from 't' to 'een auto'. I already looked at other packages (xytree, tikz), but I found no way to do this  \documentclass[11pt]{article} \usepackage{gb4e}  \begin{document}  \begin{xlist}         \ex \label{scramble-det}         \gll          ... dat Jan een auto gisteren t gekregen heeft.\\         ... that John a car  yesterday t gotten has \\         ... that John a car yesterday. \end{xlist} \end{document}   The following, as an example, is taken from the , but I don't understand it at and therefore cannot modify it to suit my needs:
30527
The MWE:  \documentclass{standalone}  %====================================== \usepackage{tikz} \usetikzlibrary{graphdrawing} \usetikzlibrary{arrows} \usetikzlibrary{graphs} \usegdlibrary{force, layered, trees} %======================================  \begin{document}  \tikz  \graph [spring layout, nodes = draw] {     a/"dispersive\newline collision";     b/"non-dispersive\newline  collision";      a -&gt; b };  \end{document}   The output:    The question:  As you can see above, the \newline command does nothing. Trying to use \\ instead of \newline, like how the pgfmanual does in some examples (see pg. 386) has the same effect. Why? What can I do in order to have the words appear on separate "lines"?
116518
I have this problem: when I try to compile a diagram I get the following message:     I think the culprit is a tikzcd arrow in ell 1-1   But I have not problem when, in the tikzlibrary, I just use cd, matrix and backgrounds. The problem is when using babel and cd at the same time.  \documentclass{article} \usepackage{amsfonts,amssymb,amsmath,tikz} \usepackage[spanish]{babel} \usepackage[latin1]{inputenc} \usepackage[mathcal]{euscript}  \usetikzlibrary{babel,cd,matrix,backgrounds}  \begin{document} \begin{center}   \begin{tikzcd}     X\rar[mapsto]{T}&amp;Y   \end{tikzcd} \end{center}  \end{document}
81282
I have a problem with LaTeX packages. My problem seems to be with xcolor, and very close from this , but their solution does not work for me.   Unfortunatly, even if I put \usepackage[table,xcdraw]{xcolor} before \usepackage{xcolor} the problem continues...   Is there a simple/magic solution?  Here is the packages I use:  \documentclass[ 11pt, % The default document font size, options: 10pt, 11pt, 12pt %oneside, % Two side (alternating margins) for binding by default, uncomment to switch to one side french, % ngerman for German singlespacing, % Single line spacing, alternatives: onehalfspacing or doublespacing %draft, % Uncomment to enable draft mode (no pictures, no links, overfull hboxes indicated) %nolistspacing, % If the document is onehalfspacing or doublespacing, uncomment this to set spacing in lists to single %liststotoc, % Uncomment to add the list of figures/tables/etc to the table of contents %toctotoc, % Uncomment to add the main table of contents to the table of contents %parskip, % Uncomment to add space between paragraphs %nohyperref, % Uncomment to not load the hyperref package headsepline, % Uncomment to get a line under the header %chapterinoneline, % Uncomment to place the chapter title next to the number on one line %consistentlayout, % Uncomment to change the layout of the declaration, abstract and acknowledgements pages to match the default layout table, ]{MastersDoctoralThesis} % The class file specifying the document structure  \usepackage[utf8]{inputenc} % Required for inputting international characters \usepackage[T1]{fontenc} % Output font encoding for international characters  \usepackage{amsmath} % Use the Palatino font by default  \usepackage[table,xcdraw]{xcolor} % pas OK  \usepackage{xcolor} %OK  \usepackage{hyperref}  \usepackage[bottom]{footmisc}  \usepackage[backend=bibtex,style=authoryear,natbib=true]{biblatex} % Use the bibtex backend with the authoryear citation style (which resembles APA)  \addbibresource{example.bib} % The filename of the bibliography  \usepackage[autostyle=true]{csquotes} % Required to generate language-dependent quotes in the bibliography  \usepackage{capt-of}  \usepackage{subfigure}  \usepackage{caption}  \usepackage{float}  \usepackage{graphicx}  \usepackage{amssymb}  \usepackage{amsfonts}  \usepackage[framemethod=TikZ]{mdframed} \usepackage{lipsum} \mdfdefinestyle{MyFrame}{%     linecolor=black,     outerlinewidth=2pt,     roundcorner=20pt,     innertopmargin=\baselineskip,     innerbottommargin=\baselineskip,     innerrightmargin=20pt,     innerleftmargin=20pt,     backgroundcolor=gray!20!white}   And here is the table I used in one of the chapters ():   % Please add the following required packages to your document preamble: % \usepackage[table,xcdraw]{xcolor} % If you use beamer only pass "xcolor=table" option, i.e. \documentclass[xcolor=table]{beamer} \begin{table}[] \begin{tabular}{|c| &gt;{\columncolor[HTML]{FFFFFF}}c | &gt;{\columncolor[HTML]{EFEFEF}}c | &gt;{\columncolor[HTML]{FFFFFF}}c | &gt;{\columncolor[HTML]{EFEFEF}}c | &gt;{\columncolor[HTML]{FFFFFF}}c | &gt;{\columncolor[HTML]{EFEFEF}}c | &gt;{\columncolor[HTML]{FFFFFF}}c |} \hline Row 1: &amp; \#1   &amp; \#2  &amp; \#3   &amp; \#4   &amp; \#5      &amp; \#6     &amp; \#7     \\ \hline Row 2: &amp; 12 \% &amp; 1 \% &amp; 15 \% &amp; 25 \% &amp; 18.75 \% &amp; 12.5 \% &amp; 6.25 \% \\ \hline \end{tabular} \end{table}
74840
What are the options that can be considered an alternative to the old  symbol ?  I would like to denote a small break in the flow of the text, I noticed that this days many people like to just add more whitespace than the usual new line; but still, I would like to use a symbol, a more explicit glyph and I don't know if there are more "modern" ways to express this.
89589
Only, I wish to learn using Animation Nodes for future motion graphics. Any assistance is appreciated.  You can do your own way of wobbling the text. I am not too exact as to how do you do it or what font style you use. I am only just keen on learning nodes for wobbling text for future projects. Thanks in advance.
20481
I'm having this Error when I try to compile my .tex file with xelatex:  ! Package hyperref Error: Wrong DVI mode driver option `dvips', (hyperref)                because XeTeX is running.  See the hyperref package documentation for explanation.   This is my LaTeX header  \documentclass[10pt, a4paper, dvips,]{moderncv}  \moderncvtheme[grey, roman]{classic}  \usepackage{ifxetex} \ifxetex % only for xelatex \usepackage{xltxtra} % this should load both fontspec &amp; xunicode \usepackage{fontspec} \setromanfont{Helvetica Neue} \else % \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \fi % \ifxetex   Any ideas?  EDIT:  I removed the 'dvips', now I get:  ! Package hyperref Error: Wrong driver option `pdftex', (hyperref)                because pdfTeX in PDF mode is not detected.  See the hyperref package documentation for explanation.   Now my first latex line  \documentclass[10pt, a4paper]{moderncv}   Any clues ?
107943
I've looked to another example but struggle to adapt it to my needs. Tikz is new to me.    \begin{center}   \begin{tikzpicture}[every edge/.style={shorten &lt;=1pt, shorten &gt;=1pt}]   \draw (0,0)  node [below] {0} -- (1,0) node [below] {1};   % draw the tick marks   \coordinate (p) at (0,2pt);   \foreach \myprop/\mytext [count=\n] in {0.06/$p_1$,0.06/$p_2$,0.06/$p_3$,0.06/$p_4$,0.06/$p_5$,0.15/$p_6$,0.13/$p_7$,0.14/$p_8$,0.15/$p_9$,0.13/$p_10$}   \draw [decorate,decoration={brace,amplitude=2}] (p)  edge [draw] +(0,-4pt) -- ++(\myprop,0) coordinate (p) node [midway, above=2pt, anchor=south] {\mytext} ;   \path (1,2pt) edge [draw]  ++(0,-4pt); \end{tikzpicture} \end{center}     Latex squeeze all the values together instead of spreading them over the 0 to 1 axis.
23638
Under MacTeX 2018 the following TeX file:  \documentclass{article}  \usepackage{tikz}  \usetikzlibrary{decorations.pathreplacing,calligraphy}  \begin{document}  \tikz\draw[decorate,decoration={calligraphic brace,amplitude=4mm},ultra thick] (0,0) -- (0,8);  \end{document}   gives the following warning  ************************************************* * LaTeX warning: "kernel/deprecated-variant" *  * Variant form 'VnV' deprecated for base form '\spath_get:nnN'. One should not * change an argument from type 'N' to type 'V': base form only accepts a * single token argument. *************************************************   and these errors:  /usr/local/texlive/2018/texmf-dist/tex/latex/spath3/tikzlibrarycalligraphy.code.tex:707: Undefined control sequence. &lt;argument&gt; \g__prg_map_int   l.707 ...igraphy pen copperplate}{\l__cal_tmpa_tl}  /usr/local/texlive/2018/texmf-dist/tex/latex/spath3/tikzlibrarycalligraphy.code.tex:707: You can't use `\char"1' after \advance. \int_gincr:N ..._global:D \tex_advance:D #1\c_one    I reported the warning in , but the errors are new with TL2018 -- TL2017 does not give the errors.
100739
This is an example test.tex document. Both babel and polyglossia failed and produce the same error: \documentclass{book}  %\usepackage[vietnamese]{babel} \usepackage{polyglossia} \setdefaultlanguage{vietnamese}  \usepackage{biblatex}   \title{Sth}  \begin{document}  \maketitle  \end{document}   is the full log. And my config for VS Code: &quot;latex-workshop.latex.recipes&quot;: [     {         &quot;name&quot;: &quot;lualatex-&gt;biber&quot;,         &quot;tools&quot;: [             &quot;lualatex&quot;,             // &quot;biber&quot;,         ]     } ], &quot;latex-workshop.latex.tools&quot;: [     {         &quot;name&quot;: &quot;lualatex&quot;,         &quot;command&quot;: &quot;lualatex&quot;,         &quot;args&quot;: [             &quot;--shell-escape&quot;,             &quot;-synctex=1&quot;,             &quot;-interaction=nonstopmode&quot;,             &quot;-file-line-error&quot;,             &quot;-pdf&quot;,             &quot;%DOC%&quot;         ]     },     {         &quot;name&quot;: &quot;biber&quot;,         &quot;command&quot;: &quot;biber&quot;,         &quot;args&quot;: [             &quot;%DOCFILE%&quot;         ]     } ],  I installed all Vietnamese-related package I found using tlmgr search, notably babel-vietnamese and vntex, to no avail. When I use English language, it works. When I paste the exact document to Overleaf, it also works. So it's something on my part. How can I fix this?
26314
Please, do you know if there's any possibility how to use the listings package together with XeLaTeX? I have to use XelaTeX and therefore I have UTF-8 encoded files. This is not compatible with listings which allows one-byte encoding. (I know there is listingsutf8 package, but it converts files from UTF-8 which I don't need.)  The listings package works somehow, bu I only can use English letters. I've fond some solution like a list of special characters (  ) but it seems it works only for some letters. It there anything that would support UTF-8 in listing 'naturally'?
122070
I am a XeLaTeX user and I often have to typeset english-greek documents. Packages like xgreek or polyglossia are great but in order to apply the correct hyphenation rules you have to declare the text that belongs to the secondary language. On the long run, this can become cumbersome.  In XeLaTeX I am using the XeTeXinterchartoks mechanism  that allows me to change automatically the hyphenation rules and/or the font without explicitingly declaring them. The  involves grouping together the glyphs of a Unicode Block and then automatically applying tex commands when transitioning from a group to another one.  For those not familiar with the XeTeXinterchartoks, more info can be found at  pages 13-14.  Lately I got interested in Lua(La)Tex. I want to know if there is a way to achieve similar results in LuaTex. As was pointed in a previous question,  but it was suggested that there are other, more powerful ways to achieve the same goal.  So the questions are   How can I change the hyphenation rules/font automatically according to the glyphs used without declaring them?  Can someone provide a minimum working example or at least point me to some references? One of the drawbacks of XeTeXinterchartoks is that the settings are global. Is there a way in LuaTeX to set this feature (if it exists) on and off, thus providing more flexibility?
78357
I'm stumped with how I might use linguex to get an unglossed first line, then give a second line with morpheme breakdowns, the morpheme-by-morpheme gloss on the third line, and the free translation on the fourth line. This would be helpful for languages in which the morphophonology obscures the morphemes themselves. Anyone already done this?
59017
I'm trying out  with gnuplot to generate the data.  This works by having pgfplots write some stuff to an external file, run gnuplot on the file, and then use the generated data to plot the graph.  The problem I'm having is that I get different behaviour under xelatex as pdflatex or lualatex.  In xelatex, the data file is littered with ^^I whereas in the other two formats these are tabs.  It appears that the code ^^I is getting stored as a macro which then gets written out to the file, so possibly there's something funny going on with the ^^I syntax: xelatex is reading it literally.  Indeed, when I do \show\pgfplots@TAB (the macro in question) then for pdflatex and lualatex then I get a literal tab whereas for xelatex I get ^^I.  So how do I get a tab in xelatex?  And why isn't \gdef\pgfplots@TAB{^^I} working?  (The previous line in the code, by the way, is \catcode`\^^I=12 - I don't know if that has anything to do with it.)
3360
What packages do you use and recommend for creating graphics in your LaTeX documents?     As this is a community wiki post, please add your package to the accepted answer (or add a comment, and someone with >100 rep will add it to the CW answer), and include a brief description of what differentiates it from others and how it can be used (GUI drawing tool which generates code, type in raw text, or generates image for inclusion in document).   We'll eventually sort these answers under headings.
82677
Everywhere in the TeX community, I see suggestions like \parskip, \obeylines, \parindent, etc. I'd be surprised not to find them even in the most basic LaTeX packages. So I figured they must be deeper down in the TeX core as primitives. Knowing how they work would be very useful.  Googling for tex primitives takes me to . Is there a printable PDF version of such a reference?
39670
I would like to draw an arrow like this using TikZ:    This is taken from . I didn't succeed in reproducing the arrow; is somewhat beyond my (extremely limited) TikZ abilities. I don't need all the workflow stuff. I simply want to draw such an arrow at a certain place in my text, e.g. -->  \documentclass{article} \usepackage{&lt;???&gt;} \usepackage{tikz} \usetikzlibrary{&lt;???&gt;} \begin{document} Donec vehicula augue eu neque. Pellentesque habitant morbi \tikz &lt;???code for the arrow???&gt; ; tristique senectus et netus \end{document}   PS: Some explanations in your solution would be much appreciated, otherwise it will be difficult to customize it.