title: Texshop synctex inverse search

text: I'am running pdflatex from Texshop 3.18 on OS X 10.8.4 with Synctex and the inverse search is not working, meaning from the output pdf back to the source window. Command left clicking the pdf does nothing. The opposite, from source to preview is not a problem. As detailed in an earlier question, I've set the sync method to `synctex` and pdflatex is configured as follows:               pdflatex --shell-escape --file-line-error --syncteX=1


title: Split environment alters spacing around binary operators

text: I've been using `split` environment from `amsmath`. A problem that I've run into is that if an `&` for alignment is placed next to a binary operator, the spacing on that side of the operator is reduced from what it should be. Here is a minimal example:               \documentclass{article}     \usepackage{amsmath}     \begin{document}          \begin{equation}         f(x) = m x^2 + b     \end{equation}          \begin{equation}     \begin{split}         f(x) = & m x^2 \\         & + b     \end{split}     \end{equation}          \end{document}      ![split spacing](http://i.stack.imgur.com/oqm85.png) Any idea how to avoid this issue without having to fiddle around with manual spaces each time?


title: How to make L-shaped arrow in text?

text: I am wondering if it is possible to insert L-shaped within a text as a bullet- point. ![L-shaped arrow](http://i.stack.imgur.com/YJv9H.png) Thanks to everyone!


title: Minipage inside MetaPost label within GMP - what is wrong?

text: Any clues please?? The following MWE will not compile. Line where **minipage** environment was used seems to be the offensor. With that left out compiling is OK.               \documentclass{beamer}      \usepackage{catoptions}     \usepackage[shellescape,latex, everymp=input metaobj; input boxes;     input rboxes;  input latexmp;]{gmp}      \usempxclass{article}          \usetheme{Montpellier} \title{Something} \date{\today}          \begin{document}          \frame{\titlepage}               \begin{frame} \frametitle{Frame 1} \begin{figure}     \begin{mpost}[name=networkA]          numeric d; d:= 100;          boxit.mx(btex M U X etex rotated -90);               mx.c = origin;          drawboxed(mx);          boxit.dmx("DMX"); dmx.dy=.2d; dmx.c = mx.e + (d,0); drawboxed(dmx);          drawarrow mx.e--dmx.w;          circleit.tx("Tx"); circleit.rx("Rx");          tx.c = mx.c -.5d*dir(0) +.2d*dir(90); drawboxed(tx);          rx.c = dmx.c +.5d*dir(0) +.2d*dir(90); drawboxed(rx);          \end{mpost} \centering\usempost{networkA} \end{figure} \end{frame}          \begin{frame} \frametitle{Frame 2} \begin{figure}     \begin{mpost}[name=networkB]          numeric d; d:= 100;          boxit.mx(\btex \begin{minipage}[t]{1em}M U X\end{minipage} etex); mx.c     = origin; drawboxed(mx);          boxit.dmx("DMX"); dmx.dy=.2d; dmx.c = mx.e + (d,0); drawboxed(dmx);          drawarrow mx.e--dmx.w;          circleit.tx("Tx"); circleit.rx("Rx");          tx.c = mx.c -.5d*dir(0) +.2d*dir(90); drawboxed(tx);          rx.c = dmx.c +.5d*dir(0) +.2d*dir(90); drawboxed(rx);          \end{mpost} \centering\usempost{networkB} \end{figure} \end{frame}          \end{document}


title: Lyx doesn't generate pdf when using hyperref

text: If I don't use hyperref package everything's fine, but if I use it, after a while a message appears with something like "Command dvilualatex "filename.tex" has not yet completed. Do you want to stop it?" and I don't get my pdf. I use Lualatex.   These are the packages that I use:               \usepackage[version=3]{mhchem}     \usepackage{fancyhdr}     \usepackage{colortbl}     \usepackage{caption}     \usepackage{varwidth}     \usepackage[breaklinks,colorlinks=true,linkcolor=red,citecolor=red, urlcolor=blue]{hyperref}


title: IEEE LaTeX style: grouping references

text: I'm writing a paper in LaTeX with the IEEE style and when citing multiple references with `\cite{ref_A,ref_B,ref_C}`, it produces [1],[2],[3]. How can I change that to [1,2,3]?


title: How do I get guillemets in a listing?

text: I'm wondering if it's possible to use guillemets («») in a `lstlisting` block? I have seen some solutions for including it in the document, but none with the `listings` package.


title: Ignore figure for list of figures

text: I'd like to include some figures in my LaTeX document just like every other figure _but_ don't have exactly these figures included in the list of figures. Since I couldn't find a solution I have to ask you, is there a way?


title: TexMaker/TexStudio manual invocation of auto-completition

text: I have started using TexStudio and TexMaker (as I think they are quite similar) but I have failed to find in the scarce documentation there is available (and a brief online searching) a shortcut that manually invokes auto-completion function. I am not talking about manually "adding" something to it; just invoking it. (I am talking about the functionality provided in Eclipse with `Ctrl` \+ `Space`, Vim `Ctrl` \+ `P` and so on...) If anyone knows where is this hiding please let me know.


title: The symbol \hbar is not recognized (but shows up as "h") when using XeLaTeX

text: I am using XeLaTeX with the packages `fontspec,xunicode,xlxtra` (which I believe is pretty standard) to process my documents into a PDF file with the TeX Gyre Pagella font. I have been doing so successfully for quite some time, but when using the standard LaTeX symbol `\hbar`, upon processing an error is thrown > LaTeX Warning: Command \hbar invalid in math mode on input line 86 and the symbol appears instead as a regular "h" which partially overlaps with the previous character. Here is a minimal code example:               \documentclass{article}          \usepackage{fontspec,xunicode,xltxtra}       \defaultfontfeatures{Mapping=tex-text}     \setmainfont{TeX Gyre Pagella}     \begin{document}     hbar by itself:  $\hbar$\\     hbar with a preceeding character:   $o\hbar$     \end{document}


title: float package: get list of all floats defined with \newfloat?

text: I develop a new package and as one functionality, I would need to get the list of all floats defined using the `\newfloat` command of the `float` package. I could of course modify this command in `mypackage.sty`, but that would need `mypackage` loaded after `float` and before the usage of `\newfloat`, which I don't consider good. I found that there is a `float@type` counter that says (in a strange way) how many floats have been defined. However, there is no command `\float@by@type{<number>}`, that would return the name of the corresponding environment. Any suggestions appreciated.


title: Table cell vertical line missing

text: The vertical line at the end of the cell where i used cell merge is missing. ![enter image description here](http://i.stack.imgur.com/pGeLQ.png)


title: Tikz-timing table dashed vertlines

text: I'm in a `tikztimingtable` environment and want to include dashed vertical lines after every period width (the default number/spacing). What I currently have (code below) gives me solid gray lines, but it looks like they're drawn over my clock lines, which means any "glitch" lines in the same location aren't visible. Is there a way to either ensure the help lines are at the back or make them dashed? (Or would someone be able to point me towards relevant tutorials/documentation for styling the `horlines` and `vertlines`?)               \begin{tikztimingtable}       Clock & 16{C}       \extracode         \vertlines[help lines]{}     \end{tikztimingtable}


title: Adding tikz pictures on top of a beamer slide

text: What is the best practice for adding/uncover TikZ pictures on top of a beamer slide? I have tried the following approach               \documentclass{beamer}     \usepackage{tikz}     \begin{document}     \begin{frame}       \frametitle{Testing}       \begin{itemize}       \item<1-> A       \item<2-> B       \item<3-> C       \item<4-> D       \end{itemize}       \begin{picture}(0, 0) {          \onslide<2>{            \put(0,30){              \begin{tikzpicture}                \draw[black,thick,<->] (0,0) -- (1,0) node {Line 1};              \end{tikzpicture}           }}          \onslide<3>{            \put(20,100){              \begin{tikzpicture}                \draw[black,thick,<->] (0,0) -- (3,2) node {Line 2};               \end{tikzpicture}          }}}        \end{picture}     \end{frame}     \end{document}      of wrapping the TikZ pictures in a `picture` environment at the bottom of the slide. However, the picture environment still occupies space on the slide, affecting the positioning of the other elements on the slide. Also if, I add a new item to the list, I have to recalculate (by trial and failure) the position of the `picture` environment. Is there a better way of doing this?


title: .bib file causes build crash, url error

text: I have this code in my .bib file:               @misc{akcelerometry,     author = {Prof. Ing. Miroslav Husák, CSc.},     title = "Akcelerometry {[online]}",     url = {http://www.micro.feld.cvut.cz/home/X34SES/prednasky/08%20Akcelerometry.pdf},     type = {web page},     month = november,     year = {{2013}},     note = "[cit. 2014-03-08]"     }      It crashes but when i change url for example to `http://tex.stackexchange.com/` it works good. EDIT: bibliography style: http://pastebin.com/9KGLbuCB csn690.bst latex code:               \bibliographystyle{csn690}     \bibliography{mybibliographyfile}


title: Creating random problems by using rand option

text: I would like to generate random questions based on a random integer input. I have tried he code from a site online and tweaked it so that it generates more than one random problem but evidently it does not generate random problems. In the enumerate, the same problem appears. Any insight into the matter will be highly appreciated.               \documentclass[letterpaper]{article}     \usepackage{amsmath,amssymb,enumitem}     \usepackage{lcg,calc}     \usepackage{tikz}     \reinitrand[first=1, last=10, counter=num]  \rand     \reinitrand[first=2, last=20, counter=deno] \rand     \reinitrand[first=2, last=5, counter=coeff] \rand     \setcounter{num}{\value{coeff}*\value{num}}      \setcounter{deno}{\value{coeff}*\value{deno}}     \newcommand{\fracquestion}[1]{%     \foreach \i in {1,...,#1}     {     \item $\dfrac{\thenum}{\thedeno}$     }}     \begin{document}     \begin{enumerate}     \fracquestion{5}     \end{enumerate}     \end{document}


title: algorithm2e - Unwanted vertical space

text: Last days I met a strange behavior with `algorithm2e` which produces an unwanted space after an IF-block. I put here one MWE which shows that the problem really comes from my customization and not from the `algorithm2e` package. I don't understand what I've done wrong... ## STRANGE OUTPUT ![enter image description here](http://i.stack.imgur.com/6wapR.png) ## MWE               \documentclass{article}          \usepackage[utf8x]{inputenc}          \usepackage[longend]{algorithm2e}           \makeatletter          \newcommand\@algoVerboseBlock[3]{%              \hspace{-0.8em} \KwSty{#1} \ifhmode \\ \fi #2 \ifhmode \\ \fi \hspace{-0.8em} \KwSty{#3}%          }               \newcommand\@algoDefVerboseIf[2]{%              \renewcommand\algocf@uIf[2]%                  {\If@ifthen{##1}\If@noend{\@algoVerboseBlock{#1}{##2}{#2}}}      %              \renewcommand\algocf@If[2]%                  {\If@ifthen{##1}\If@noend{\@algoVerboseBlock{#1}{##2}{#2}}}      %          }          \newcommand\@algoDefVerboseElse[2]{%              \renewcommand{\algocf@Else}[1]%                  {\Else@else\If@endif{\@algoVerboseBlock{#1}{##1}{#2}}}              \renewcommand{\algocf@uElse}[1]%                  {\Else@else\If@endif{\@algoVerboseBlock{#1}{##1}{#2}}}          }      \makeatother                \begin{document}           \section{Default}          \begin{algorithm}[H]         \uIf{1}{if...}%         \Else{else... \\ \If{1}{if...}}%     \end{algorithm}               \section{Customization}          \makeatletter          \SetKwIF{If}{ElseIf}{Else}{Si}{Alors}{Sinon Si}{Sinon}{}          \@algoDefVerboseIf{Début Si}{Fin Si}          \@algoDefVerboseElse{Début Sinon}{Fin Sinon}       \makeatother           \begin{algorithm}[H]         \uIf{1}{if...}%         \Else{else... \\ \If{1}{if...}}%     \end{algorithm}          \end{document}


title: controling padding using the xstring package

text: in order to pad some text with a predefined padding, im using the xstrings package my current code is               \documentclass{minimal}     \usepackage{xstring}          \newcommand\padfrom[2]{\StrGobbleLeft{#1}{\StrLen{#2}}#2}               \begin{document}     \begin{tabular}{c|c}     \textbf{use} & \textbf{Expected} \\     \hline\\          \padfrom{0000}{ab} & 00ab \\          \end{tabular}     \end{document}      however that fails to compile (i can only compile the StrGobbleLeft usage when i put a raw number there, using macros/commands does not seem to work


title: How to create a format file with initex to speed up processing time?

text: I have a file called `matteo.tex` which contains lots of macros. I'd like to create a format file with `initex` so that, every time `tex` processes a file that contains some of `matteo.tex` macros, it doesn't have to waste time processing the file `matteo.tex`. How to do it? And, then, how to make `tex` load the format generated from `matteo.tex`? (`matteo.tex` is all written in `plain tex`).


title: Using tabularx and xcolor

text: Is `tabularx` compatible with `xcolor`? I did the following: ![enter image description here](http://i.stack.imgur.com/tt8cg.png)               \documentclass{memoir}     \usepackage[svgnames,hyperref,]{xcolor} % colors for hyperref     \begin{document}       \begin{tabularx}{1.00\linewidth}{X} \toprule       a       \\       b       \\       {\color{red}c} \\       d       \\       e       \\     \bottomrule     \end{tabularx}     \end{document}      But "c" is displaced so that it takes two rows. Changing the column type to `l` fixes it. Is there an easy fix to making `xcolor` work with `tabularx`?


title: Two columns in legend in pgfplots

text: I know how to create a legend in a pgfplots plot. See Legend in tikzpicture and Using a pgfplots-style legend in a plain-old tikzpicture. But I do not know how I can create a legend with two columns.


title: XeTeX UNICODE Table

text: I would like to try to write a minimal XeTeX source that generates a comprehensive UNICODE table, substituting in local fonts as required by the current plane. I made the attached code as an MWE for people wanting to include small snippets of multilingual text, but want to take it further. This will be my first time attempting loops and conditionals, so any guidance appreciated, particularly on recursively populating tabular environments. (Please note that this is different than this question in that I do not require _automatic_ font substitution. My goal is to produce a comprehensive reference document from which one could extract precisely the minimum XeTeX code required to include this or that glyph in his or her document.)               %!TEX TS-program = xelatex     %!TEX encoding = UTF-8 Unicode          \documentclass[10pt]{article}          % PACKAGES          \usepackage{fontspec}     \usepackage{longtable}          % OPEN DOCUMENT          \begin{document}          % SPECIFY UNICODE FONT          \setmainfont{Arial Unicode MS}          % SPECIFY ADDITIONAL FONTS FOR GLYPHS NOT INCLUDED IN UNICODE FONT          \newfontfamily{\Inuktitut}{Euphemia UCAS}     \newfontfamily{\Khmer}{Khmer MN}     \newfontfamily{\Sinhala}{Sinhala MN}          % BODY          \begin{longtable}{ll}     Afrikaans & My skeertuig is vol palings.\\     Albanian & Automjeti im është plot me ngjala.\\     Arabic (MSA) & حَوّامتي مُمْتِلئة بِأَنْقَلَيْسون\\     Armenian (E) & Իմ օդաթիռը լի է օձաձկերով\\     Armenian (W) & Իմ սաւառնակս օձաձկներով լեցուն է\\     Aromanian & Pãmporea-a mea-i ãmplinã di uhelji.\\     Azeri    & Hoverkraftimin içi ilan balıǧı ilə doludur.\\     Basque & Nire aerolabangailua aingirez beteta dago.\\     Belarusian & Маё судна на паветранай падушцы поўна вуграмі.\\     Bengali & আমার হভারক্রাফ্ট ইল-এ ভর্তি হয়ে গেছে\\     Bhojpuri & हमार मँडराये वाली जहाज सर्पमीनन से भरल ह\\     Breton & Leun gant sili eo ma dourruzer.\\     Bulgarian   & Корабът ми на въздушна възглавница е пълен със змиорки.\\     Catalan & El meu aerolliscador està ple d'anguiles.\\     Cebuano & Puno ug kasili ang akong hoberkrap.\\     Chamorro    & Bula håsuli/åsuli iyo-ku hovercraft.\\     Chinese (Cantonese) & 我隻氣墊船裝滿晒鱔\\     Chinese (Mandarin, Traditional) & 我的氣墊船充滿了鱔魚\\     Chinese (Mandarin, Simplified) & 我的气垫船充满了鳝鱼\\     Chinese (Taiwanese) & 我的氣墊船充滿了鱔魚\\     Cornish & Leun a sylli yw ow skath bargesi.\\     Corsican & U me battellu hè carcu d'anguili.\\     Croatian & Moja je lebdjelica puna jegulja.\\     Czech & Moje vznášedlo je plné úhořů.\\     Danish & Mit luftpudefartøj er fyldt med ål.\\     Dutch & Mijn luchtkussenboot zit vol paling.\\     English & My hovercraft is full of eels.\\     Estonian & Mu hõljuk on angerjaid täis.\\     Faroese & Luftpútufar mítt er (skít)fult í álli!\\     Finnish & Ilmatyynyalukseni on täynnä ankeriaita.\\     French & Mon aéroglisseur est plein d'anguilles.\\     Frisian (N) & Min luftdümpetbüüdj as ful ma äil.\\     Frisian (W) & Myn hoverkreaft is fol fan Eels.\\     Friulian & Il gno hovercraft al è plen di bisats.\\     Galician & O meu aerodeslizador esta cheo de anguías.\\     Georgian & ჩემი ხომალდი საჰაერო ბალიშზე სავსეა გველთევზებით\\     German & Mein Luftkissenfahrzeug ist voller Aale.\\     Greek (Ancient)  & Τὸ πλοῖόν μου τὸ μετεωριζόμενον ἐστι πλῆρες ἐγχελέων\\     Greek (Modern) & Το Χόβερκράφτ μου είναι γεμάτο χέλια\\     Greenlandic & Umiatsiaasara pullattagaq nimerussanik ulikkaarpoq.\\     Hebrew & הרחפת שלי מלאה בצלופחים\\     Hindi    & मेरी मँडराने वाली नाव सर्पमीनों से भरी हैं\\     Hungarian & A légpárnás hajóm tele van angolnákkal.\\     Icelandic & Svifnökkvinn minn er fullur af álum.\\     Indonesian & Hovercraft saya penuh dengan belut.\\     Inuktitut & \Inuktitut ᐅᒥᐊᕐᔫᑉ ᐳᓪᓕᓕᒫᐸᒐ ᑕᑦᑕᕐᓂᖅ ᐊᒻᒪᔭᖅ\\     Irish (Gaelic) & Tá m'árthach foluaineach lán d'eascanna.\\     Italian & Il mio aeroscivolante è pieno di anguille.\\     Japanese & 私のホバークラフトは鰻でいっぱいです.\\     Khmer & \Khmer សុទ្ធតែឣន្ចងពេញទូកហាះយើង ។\\     Korean & 내 호버크라프트는 장어로 가득 차 있어요\\     Lakota Sioux & Iyéčhiŋkiŋyaŋka čha kiŋyáŋ mitȟáwa kiŋ hoká ožúla (yeló)!\\     Latin & Mea navis volitans anguillis plena est.\\     Latvian & Mans transportlīdzeklis uz gaisa spilvena ir pilns ar zušiem.\\     Lithuanian & Mano laivas su oro pagalve pilnas ungurių.\\     Low German & Mien Lüchtpöukaan ist vull von sük aalen.\\     Luxembourgish & Mäi Loftkësseboot ass voller Éilen.\\     Macedonian & Моето летачко возило е полно со јагули.\\     Manx (Gaelic) & Ta my haagh crowal lane dy astan.\\     Māori & Kī tōnu taku waka topaki i te tuna.\\     Malay & Hoverkraf saya penuh dengan belut.\\     Malayalam & എന്‍റെ പറക്കും-പേടകം നിറയെ വ്ളാങ്കുകളാണ്\\     Maltese & Il-hovercraft tiegħi hu mimli sallur.\\     Marathi & माझी होडी मासळयांनी भरली आहे\\     Mongolian & Миний агаарын даралтыг ашиглан хөвөгч усан онгоцийг дүүрэн могой загас юм.\\     Nahuatl & Noehēcatlapalqui cōāmichtēnqui.\\     Ndebele (N) & Isikepe sami sigcwele umzowa.\\     Norwegian & Luftputebåten min er full av ål.\\     Occitan & Mon aerolisador es plen d'anguilas.\\     Oriya & Mo hovercraft re eel bharti hei jaichi.\\     Persian (Farsi) & هاورکرافت من پر مارماهى است\\     Polish & Mój poduszkowiec jest pełen węgorzy.\\     Portuguese & Meu hovercraft está cheio de enguias.\\     Proto-Indo-European & Dihskolmos-to-h1me hxVnghel plh1nos h1esti.\\     Punjabi & ਮੇਰਾ ਹਵਰਕ੍ਰਾਫ਼ਤ ਨਾਂਗਾਂ ਨਾਲ਼ ਭਰਿਆ ਪਿਆ।\\     Quenya & Venenya vilyanirwanen ná quanta as angolingwi.\\     Romanian & Vehicolul meu pe pernă de aer e plin cu ţipari.\\     Russian & Моё судно на воздушной подушке полно угрей.\\     Samoan & Ua tumu la'u ato fagota i pusi.\\     Sardinian (Logudorese) & Su hovercraft est penu de ambidas.\\     Scottish Gaelic & Tha mo bhàta-foluaimein loma-làn easgannan.\\     Serbian & Мој ховеркрафт је пун јегуља.\\     Shona & Hovercraft yangu yakazara nemikunga.\\     Sinhala & \Sinhala මාගේ වායු පා යානයේ ආඳන් පිරී ඇත\\     Slovak & Moje vznášadlo je plné úhorov.\\     Slovenian & Moje vozilo na zračni blazini je polno jegulj.\\     Somali & Huufarkarafkayga waxaa ka buuxa eels.\\     Spanish & Mi aerodeslizador está lleno de anguilas.\\     Swahili & Gari langu linaloangama limejaa na mikunga.\\     Swedish & Min svävare är full med ål.\\     Swiss German & Mis Luftchüssiboot isch volle Aal.\\     Tagalog & Puno ng palos ang aking hoberkrap/hovercraft.\\     Tamil    & என் மிதவை நிறைய விலாங்கு மீன்கள்.\\     Telugu & నా హోవర్ఁక్రాఫ్ఠ్ అంతా ఈలు చేపలతో నిండిపోయింది.\\     Thai & โฮเวอร์คราฟท์ของผมเต็มไปด้วยปลาไหล.\\     Tibetan & ངའི་རླུང་འདེགས་གྲུ་གཟིངས་ནི་ཉ་མན་ལི་ཡིས་གང་གི་འདུག །\\     Tok Pisin & Bilong me hangamapim bot stap pulap maleo.\\     Tongan & Hoku vakapuna tētē 'i 'olunga fono 'i he toke.\\     Tsotsil & Li j-xulem tak'ine noj ta conoetik.\\     Turkish & Benim hovercraft yılan balığı dolu.\\     Tuvan & Мээң ховеркрафтым иштинде чылан ышкаш балык долу.\\     Ukrainian & Моє судно на повітряній подушці наповнене вуграми.\\     Uzbek & Mening kayiqim baliq bilan to'lgan.\\     Vietnamese & Tàu cánh ngầm của tôi đầy lươn.\\     Võro & Muq hõl'omismassin om angõrit täüs.\\     Welsh & Mae fy hofrenfad yn llawn llyswennod.\\     Yiddish & מיין פראָם ( שוועבשיף ) איז פֿול מיט ווענערס\\     Yorùbá & Ọkọ afategun-sare mi kun fun ẹja arọ.\\     Zulu & Umkhumbi wami ugcwele ngenyoka zemanzini.     \end{longtable}          % END          \end{document}      ===UPDATE=== After reading some of the great answers and comments here, I have the backbone for this project. My immediate, brute force, solution will be to create `multido` loops for each UNICODE subset currently displaying `.notdef` glyphs, switching typefaces as required. Definitely open to other, more elegant suggestions.               %!TEX TS-program = xelatex     %!TEX encoding = UTF-8 Unicode          \documentclass[10pt]{article}          % PACKAGES          \usepackage{fontspec}     \usepackage{multicol}     \usepackage{multido}               % FORMATTING          \textwidth = 6.5 in     \textheight = 8 in     \oddsidemargin = 0.0 in     \evensidemargin = 0.0 in     \setlength{\parindent}{0pt}          % OPEN DOCUMENT          \begin{document}          % SPECIFY UNICODE FONT          \setmainfont{Arial Unicode MS}          % BODY     \small     \begin{multicols}{10}     \multido{\i=0+1}{"10000}{% from U+0000 to U+FFFF         {\tiny\i}\ \symbol{\i}\endgraf     }     \end{multicols}          \end{document}          % END          \end{document}


title: Impossible to save LaTeX file in Texmaker on Windows

text: Yesterday, I downloaded the latest version of MiKTeX and Texmaker and started using XeLaTeX. Today, I am no longer able to compile or save any `.tex` file. When I try to do so, a message pops up: “The file could not be saved. Please check if you have write permission.” Do you have any idea of how I could fix this problem?


title: Multiple Titles in LaTeX

text: Maybe this is a really basic question but i can't seem to find an appropriate answer. For my master's degree thesis i need to have several titles in the cover (university name, my title, the subject of the work, etc.). Any elegant way to implement this? (My university unfortunately does not provide any LaTeX template. By the way, suggestions have been awesome so far!) I needed a cover similar to this: ![enter image description here](http://i.stack.imgur.com/GMj48.jpg)


title: pst-plot: x-y-data from different files

text: How do I plot with pst-plot when the x- and y- data are stored in different files?               \documentclass{scrartcl}     \usepackage[utf8]{inputenc}     \usepackage{pst-plot}     \usepackage{auto-pst-pdf}          \begin{document}          \begin{postscript}     \readdata{\xData}{x.dat}     \readdata{\yData}{y.dat}     \begin{psgraph}[axesstyle=frame](0,0)(25,7.5){10cm}{6cm}     \listplot{**What to do here?**}     \end{psgraph}     \end{postscript}          \end{document}


title: Continue alignment to new page when using enumerate

text: I would like to keep the sentence starting in Let w to be inline with the (ii). It is a continuation of the (ii). However it gets aligned with 2(b) instead. I am using enumerate to get 2b and another enumerate within for (i), (ii). What should I do to keep everything under (ii) to be aligned with the rest of text in (ii) even if it spans two pages?


title: Current section header for article class

text: In the `article` class, is there a way to obtain, in each page, the header displaying the name of the section with the number of the page? I need the same visualization like the `book` class.


title: How to sort the entries of a dictionary alphabetically?

text: This is a follow-up question to: How to automate a dictionary (sorting, headers)? I was wondering if there is a way to sort the entries alphabetically in the following code.   I guess myself that `xindy`, `glossaries` or something similar should do the trick, but I don't know how to do that.   BTW, I'm using `XeLaTeX` on TL2012 on Win7 and my document is in Persian which is an RTL language and also, I'd prefer to do this without using additional packages.   Here is the code:               \documentclass[twoside]{article}         \usepackage{multicol}         \usepackage{fancyhdr}         \usepackage[bf,sf,center]{titlesec}          % Headers and footers         \fancyhead[L]{\textsf{\rightmark}}         \fancyhead[R]{\textsf{\leftmark}}              \fancyfoot[C]{\textbf{\textsf{\thepage}}}              \renewcommand{\headrulewidth}{1.4pt}         \renewcommand{\footrulewidth}{1.4pt}          % Entry command : \dict{<word>}{<gender>}{<text>}         \newcommand{\dict}[3]{%             \markboth{#1}{#1}%             \par\vspace{0.25\baselineskip}%             \textbf{\textsf{#1}} \textit{- #2 -} #3%         }              \pagestyle{fancy}          % For testing         \usepackage{lipsum}               \begin{document}          \section*{A}          \begin{multicols}{2}         \dict{adequate}{n}{\lipsum[1]}         \dict{adhere}{n}{\lipsum[2]}         \dict{adherence}{n}{\lipsum[3]}         \dict{adhesion}{n}{\lipsum[4]}         \dict{adhesive}{n}{\lipsum[5]}         \dict{adjacent}{n}{\lipsum[6]}         \dict{adjective}{n}{\lipsum[1]}         \dict{adjoin}{n}{\lipsum[2]}         \dict{adjourn}{n}{\lipsum[3]}         \dict{adjournment}{n}{\lipsum[4]}         \dict{adjunt}{n}{\lipsum[5]}         \dict{adjust}{n}{\lipsum[6]}     \end{multicols}               \section*{M}          \begin{multicols}{2}         \dict{main}{n}{\lipsum[3]}         \dict{material}{n}{\lipsum[1]}         \dict{mathematic}{n}{\lipsum[2]}         \dict{more}{n}{\lipsum[2]}     \end{multicols}               \section*{Z}          \begin{multicols}{2}         \dict{zebra}{n}{\lipsum \lipsum \lipsum}         \dict{zero}{n}{\lipsum[4]}     \end{multicols}          \end{document}      **Edit:**   I should mention that I MUST only use `xindy`, because the Persian language has some problems with other programs such as `makeindex`.


title: How do the \xx_case: functions work?

text: In the process of answering _expl3 switch for booleans: Is there a \bool_case:Nnn?_ , I tried to make sense of the various `\xx_case:` functions Expl3 provides. Here, for example, is `\tl_case:Npn`:               \cs_new:Npn \tl_case:Nnn #1#2#3       {         \tex_romannumeral:D         \__tl_case:Nw #1 #2 #1 {#3} \q_recursion_stop       }     \cs_new:Npn \__tl_case:Nw #1#2#3       {         \tl_if_eq:NNTF #1 #2           { \__tl_case_end:nw {#3} }           { \__tl_case:Nw #1 }       }     \cs_new_eq:NN \__tl_case_end:nw \__prg_case_end:nw      Working from the inside-out, I’ve figured out this much: The command `\__prg_case_end:nw {<code>} <tokens> \q_recursion_stop` consumes all ⟨ _tokens_ ⟩ until `\q_recursion_stop`, leaving ⟨ _code_ ⟩ behind. Within the internal function `\__tl_case:Nw`, we test for equality of the ⟨ _test token-list variable_ ⟩ to the particular ⟨ _token-list variable case_ ⟩: if they’re equal, the function terminates returning the associated ⟨ _code case_ ⟩; otherwise the function yields itself, which then applies to the next `{<token-list variable case>} {<code case>}` pair. What I’m having trouble understanding is how `\tl_case:Nnn` sets up this recursion. In particular, I know `\tex_romannumeral:D` (`\romannumeral`) does something funny related to expansion, but what’s it doing in this context? (Would it be easier to explain or implement this sort of function in terms of the recursion functionality documented in `l3quark` §§ 4 & 6?)


title: Switch off "on page" for varioref

text: For referencing I'm using the three packages               \usepackage{varioref}     \usepackage{hyperref}     \usepackage{cleveref}      In the text I cite with `\vref`, which is redefined by `cleveref` and does its job very well. Now I have to publish a paper where "on page .." from the `varioref` needs to much space. Is there an option to switch it off? Or do I have to change everything to `\cref`?


title: Biblatex and per-year subbibliography

text: My question is how I can group the bibliographic records using biblatex on per-year-basis. I have tried the approach               \newcounter{mycounter}     \setcounter{mycounter}{2013}     \defbibcheck{intheyear}{       \iffieldint{year}       {\ifnum \thefield{year} = \themycounter         {\skipentry}         {} }       {\skipentry}}      and then using the command               \printbibliography[title=2013     ,heading=subbibliography     ,type=article     ,check = intheyear     ]      changing the counter value manually, but this yields a result only if the command is called once. In the second calling of `\printbibliography`, `pdflatex` announces > >     ! Incomplete \ifnum; all text was ignored after line <i>xx</i>. >     <inserted text> >                     \fi >     <*> \input lpublications.tex >   >     ! Emergency stop. >     <*> \input lpublications.tex >   What I want to achieve is that I will have structure of references as > 2013 > > Braham, A., Edrich, B. ... > > Ecilie, C., Ietrich, D. ... > > 2012 > > ..... If this was done automatically according to entries in `.bib` file. It would be fine. I have really no idea how to do that.


title: TikZ header and footer across top and bottom of bulletin/newsletter page

text: I would like to have a simple TikZ coloured header and footer for a bulletin/newsletter template. I have in mind something such as this: ![enter image description here](http://i.stack.imgur.com/cIkZR.png) Note the green bands spanning the width of the first page at the top and the bottom. Could you suggest a way of approaching this?


title: Alternative for SetKwInParam in algorithm2e

text: In recent versions of algorithm2e SetKwInParam no longer exists: > REMOVE: - SetKwInParam has been deleted since not useful itself because of > different macros which can do the same in a better and a more consistent way > as SetKwFunction or SetKw. So how can I get the same result in the more recent versions of algorithm2e? For example, I would like to define a new function with 3 parameters, where the function name is in bold face: **MyFunction(** _param1_ , _param2_ , _param3_ **)** Note the bold face 'MyFunction(' and ')'. The parameter might be a math expression.


title: Headline adjustment

text: How can I adjust the chapter headline, so that the last line ends with the red box? And is there a way to move the whole chapter heading so that the word "chapter" is adjusted with the main text, i.e. so that the upper side of the letters "chapters" is adjusted to the text body below?               \documentclass[             fontsize=12pt,                                 % monochrome,                                  a4paper,                                                 parskip=half,                                        ngerman,                                  headinclude=true,                                  footinclude=false,                                  captions=tableheading,                                  numbers=noenddot,                                  headings=big]                                  %chapterprefix=true]   %                                  {scrreprt}          \usepackage[english,ngerman]{babel}     \usepackage[utf8]{inputenc}     \usepackage{color}     \usepackage{blindtext}          % Define own Chapter style     % Pretty chapter pages     %------------------------------------------     \definecolor{nicered}{rgb}{.647,.129,.149}     \usepackage{soul}     \usepackage{pdfpages}          \makeatletter     \newsavebox{\feline@chapter}     \newcommand\feline@chapter@marker[1][4cm]{%     \sbox\feline@chapter{%     \resizebox{!}{#1}{\fboxsep=1pt%     \colorbox{nicered}{\color{white}\bfseries\sffamily\thechapter}%     }}%     \rotatebox{90}{%     \resizebox{%     \heightof{\usebox{\feline@chapter}}+\depthof{\usebox{\feline@chapter}}}%     {!}{\scshape\so\@chapapp}}\quad%     \raisebox{\depthof{\usebox{\feline@chapter}}}{\usebox{\feline@chapter}}%     }     \newcommand\feline@chm[1][4cm]{%     \sbox\feline@chapter{\feline@chapter@marker[#1]}%     \makebox[0pt][l]{% aka \rlap     \makebox[1cm][r]{\usebox\feline@chapter}%     }}             \renewcommand*{\chapterformat}{%     \hspace{\leftmargin} \feline@chm[2.5cm] % Height of the colored box     \hspace{2cm}     }     \makeatother     %------------------------------------------          \begin{document}               \chapter{Lorem ipsum dolor sit amet, consectetuer adipiscing elit}     \blindtext[2]     \end{document}      ![Example](http://i.stack.imgur.com/vE4Z1.jpg)


title: Whitespace that breaks across pages (e.g. for handwritten answers)

text: I'm creating a document where I want to leave white space of varying heights, e.g. for handwritten answers to questions. It doesn't matter whether this empty space is bordered or not. The key thing is that it needs to break across pages, so if I asked for a space of height 6in, but there was only 3in left on the page, I would get 3in on the first page and 3in on the next. For instance I saw someone use this code here               \def\boxpar[#1]#2#3{{\setlength{\fboxsep}{-\fboxrule}\fbox{\parbox[][#2][t]{#1}{\mbox{}\\[-.125\baselineskip]\mbox{}~#3}}}}          \boxpar[\hsize]{6in}{}      which will create a bordered box 6in tall and the width of the page as required, but if there is not enough space on the first page it will move the whole thing to the next page.


title: Add period after author in biblatex with dashed entries

text: I need to add a period after the (last) author in my bibliography, right before the printed year. From Period after last author name in biblatex when terseinits = true I learned that I can do this with               \usepackage{xpatch}     \xpretobibmacro{date+extrayear}{\setunit{\addperiod\space}}{}{}      But when the `biblatex` option `dashed` is set to `true`, and there are multiple entries within one year so that the letters `a` and `b` are added to separate them, the period is added after the year inside the parentheses instead of going after the dash.               \documentclass{article}     \usepackage[style = authoryear-comp, dashed = true]{biblatex}     \usepackage{xpatch}     \xpretobibmacro{date+extrayear}{\setunit{\addperiod\space}}{}{}     \usepackage{filecontents}     \begin{filecontents}{\jobname.bib}     @article{lennon1963,         AUTHOR = "John Lennon",         TITLE = "Does she love you? Yeah, yeah, yeah",         JOURNALTITLE = "Top of the Pops",         YEAR = "1963",         PAGES = "5--13"}     @article{lennon1967a,         AUTHOR = "John Lennon",         TITLE = "A day in whose life?",         JOURNALTITLE = "Top of the Pops",         YEAR = "1967",         PAGES = "12--24"}     @article{lennon1967b,         AUTHOR = "John Lennon",         TITLE = "Is love all you need?",         JOURNALTITLE = "Top of the Pops",         YEAR = "1967",         PAGES = "25--34"}     \end{filecontents}     \addbibresource{\jobname.bib}     \begin{document}     \nocite{*}     \printbibliography     \end{document}      ![enter image description here](http://i.stack.imgur.com/fIIHY.png)


title: How can I draw 25 horizontal lines instead of these 25 marked samples?

text: Instead of the samples which were marked via `mark=-`, I would like to have horizontal lines that fill the entire `axis` from left to right. Had the idea to tune the dashes via `mark size=6cm` but I did not find out how to clip them at the plot's borders. ## Picture ![enter image description here](http://i.stack.imgur.com/wJQ9E.png) ## MWE               \documentclass[a4paper     ]{scrartcl}          \usepackage{     tikz,     pgfplots,     amsmath     }          \usepackage[T1]{fontenc}     \usepackage{     lmodern,     textcomp,     siunitx     }          \begin{document}     \begin{center}     \begin{tikzpicture}[font=\small]     \begin{axis}[     height=5cm,     width=6cm,     scale only axis=true,     %     xlabel={\(\alpha\) in \si{\degree}},     ylabel={\(\sin{(\alpha)}\)},     %     xtick=\empty, ytick=\empty, xticklabels={,,}, yticklabels={,,}, xmajorgrids={false}, ymajorgrids={false}     ]     \addplot+[domain=0:360, samples=25, only marks, mark=-] {sin(x)};     \end{axis}     \end{tikzpicture}     \end{center}     \end{document}


title: organizing book chapters in bibliographies using the "crossref" and "related" fields

text: The way biblatex handles crossref is great ... but there are always new wishes/questions. I find it kind of awkward that the bibliography mixes the books and their chapters (`@inbook` entries). Would there be a way to organise them ? Like   * Author, book   * Author, another book, contains :   *     * chapter 1   *     * chapter 5   * Auther, article Where "chapter 1" and "chapter 5" would be `@inbook` entries crossreferencing to "another book". I'm using either the `philosophy-verbose` or `verbose- trad2` styles. Thanks, Jos Edit : I changed the (M)WE to use the `related` field as suggested by moewe : Thanks ! Works like a charm, but the syntax for formatting the fields that are printed in the bibliography is a bit hard. How to get it to print the pages instead of the year of publication of each chapter ?               \documentclass[ngerman,french]{article}     \usepackage[T1]{fontenc}     \usepackage[latin9]{inputenc}          \makeatletter     \usepackage{lmodern}     \usepackage{perpage}     \MakePerPage{footnote}     %% Biblatex %%     \usepackage[language=french,%     autopunct=true,%       style=verbose-trad2,%        strict,%        related=true,     backend=biber]%     {biblatex}%          \usepackage{filecontents}     \begin{filecontents}{\jobname.bib}     @Book{MH_Holzwege,       keywords =     {MH,D},       author =   {Martin Heidegger},       title =    {Holzwege},       publisher =    {Vittorio Klostermann},       address =      {Frankfurt a. M.},       year =     2003,       series =   {Einzelausgabe des Bd. 5 der Gesamtausgabe},       edition =      {8., unver\"{a}nderte Auflage},       addendum =     {1. Publikation: 1950},       related = {MH_Kunstwerk,MH_NietzscheGott,MH_Weltbild},       relatedtype = {multivolume}      }          @InBook{MH_Kunstwerk,       keywords =     {MH,D},       author =   {Martin Heidegger},       title =    {Der Ursprung des Kunstwerkes},       pages =    {1--74},       crossref = {MH_Holzwege}     }          @InBook{MH_NietzscheGott,       keywords =     {MH,D},       author =   {Martin Heidegger},       title =    {Nietzsches Wort `{Gott} ist tot'\,},       pages =    {193--247},       crossref = {MH_Holzwege}     }          @InBook{MH_Weltbild,       keywords =     {MH,D},       author =   {Martin Heidegger},       title =    {Die Zeit des Weltbildes},       pages =    {69--104},       crossref = {MH_Holzwege}      }          @Book{MH_SZ,       keywords =     {MH,D},       author =   {Martin Heidegger},       title =    {{Sein und Zeit}},       address =      {T\"{u}bingen},       publisher =    {Max Niemeyer},       year =     2001,       edition =      {18. Auflage},       addendum =     {1. Publikation: 1927}}          \end{filecontents}     \addbibresource{\jobname.bib}          \makeatother          \usepackage{babel}     \addto\extrasfrench{\providecommand{\og}{\leavevmode\flqq~}\providecommand{\fg}{\ifdim\lastskip>\z@\unskip\fi~\frqq}}          \begin{document}          \title{Titre}               \author{A. Teur}          \maketitle          Texte\footcite[20]{MH_Kunstwerk}.          %    Plus de texte \footcite{MH_Weltbild}.          Et hop \footcite{MH_SZ}          Une derni\`ere\footcite{MH_NietzscheGott}          \printbibliography[title={Oeuvres de Martin Heidegger},keyword=MH,keyword=D,nottype=inbook]           \end{document}


title: Why is tex designed to render spaces around brackets?

text: When I wrote following lines:               \section{Introduction}{       Content in introduction ...     }      Unwanted space comes before `Content` as warned. I understand it's due to some technical decision in tex. But I wonder the reasons behind this decision. At the beginning of text tags in HTML, literal spaces do not get rendered. I actually prefer behavior like this, because it makes my handcrafted code more readable. By the way, can I have tex ignore spaces between `{` and `Content` of this code?


title: Creating mathjax-style documents

text: Is there any software, website, etc. that renders a document as if MathJax were being used, but in such a way that the output can be read by someone who is not using MathJax? (Perhaps the equations and notation could be inserted as png images.) I'm not sure what format the output document should be; perhaps html, or rtf in the unlikely event that that is possible. Here are my motivations:   1. It's all very well to use GmailTeX to apply MathJax to emails I am reading or writing, but sometimes I send emails to people whom I know do not use this feature. I would like to be able to send them emails that I know they can read, without having to attach a pdf or include images by hand.    2. LaTeX has a fairly steep learning curve. It would be nice to have a way for students who want to communicate math by computer to concentrate only on typing the math, without having to learn about non-WYSIWYG typesetting, compiling, etc. Chances are, what I am asking for is impossible without a revision of web standards or some such. But if there are any options that do anything like this, I would like to know about them.


title: Mixing latin and cyrillic characters

text: I have an idea of how to mix those, but failed to find out which fontenc encoding to use for Central European characters.               \documentclass{article}          \usepackage[utf8]{inputenc}     \usepackage[T1,T2A]{fontenc}          \begin{document}          \fontencoding{T1}     Some latin text here with Central European characters such as š or đ.     \fontencoding{T2A}     А овдје се налази ћирилични текст.     \fontencoding{T1}     And latin again!          \end{document}      Everything works just fine if I remove character đ, but when I put it there, T1 doesn't work for it. I get this error message:               ! LaTeX Error: Command \dj unavailable in encoding T2A.      Now this is a little confusing, since đ should be under T1 encoding, right? What encoding should I use to be able to use character đ? Is there a list of available fontenc encodings (I could iterate until I found the one that works)?


title: Align vertically two tikzpicture in subfloat

text: I have two sublfoat that I would like to align from the horizontal coordinate line.               \documentclass{article}     \usepackage{tikz}     \usepackage{amsmath}     \usepackage{subfig}     \begin{document}     \begin{figure}       \centering       \subfloat[Using the electrode as einzel lens.]{     \begin{tikzpicture}     \draw[->] (-0.25,0) -- (3.5,0) node[below left] {$z$};     \draw[->] (0,-0.25) -- (0,3.5) node[below left] {$V$};     \draw (0, 3.0) node[above right] {$V_p$} -- ++(0.35, 0) -- ++(1.25, -3.0) -- ++(0.25, 0) -- ++(0.15, 0.75) node[above] {$V_{\text{ein}}$} -- ++(0.30, 0) -- ++(0.15, -0.750);     \end{tikzpicture}     }     \quad       \subfloat[Using the electrode as repeller.]{     \begin{tikzpicture}     \draw[->] (-0.25,0) -- (3.5,0) node[below left] {$z$};     \draw[->] (0,-0.25) -- (0,3.5) node[below left] {$V$};     \draw (0, 3.0) node[above right] {$V_p$} -- ++(0.35, 0) -- ++(1.25, -3.0) -- ++(0.25, 0) -- ++(0.15, -.75) node[below] {$V_{\text{rep}}$} -- ++(0.30, 0) -- ++(0.15, 0.750);     \end{tikzpicture}     }       \caption{Potentail diagram of the extraction.}       \label{fig:potential}     \end{figure}     \end{document}      ![enter image description here](http://i.stack.imgur.com/SwUZE.png)


title: Why must the independent variable of a function to be plotted be a macro in TikZ?

text: Consider the following code (taken from Jake's answer) and focus on the variable of the function to be plotted.               \documentclass[border=5pt,tikz]{standalone}          \begin{document}     \begin{tikzpicture}         \draw [domain=0:50,variable=\t,smooth,samples=500]             plot ({\t r}: {1+2*exp(-\t/10)});     \end{tikzpicture}     \end{document}      My question is quite simple, why must the variable be a macro (`\t` in this case) rather than just a letter (for example `t`) or a word (for example `theta`) as I think we usually use a letter when using a graphics calculator or Computer Algebra Systems? PSTricks, for example, also does not need a macro when plotting. In PSTricks, `\psplot[algebraic]{-4}{4}{x^2-5*x+6}` where `x` is the independent variable and it does not need to be a macro `\x`. The relevant case of using a macro is when we use a loop such as `\foreach \t in {1,...,2}{<do with \t>}`. But I don't think plotting needs such an iterating variable `\t` exposed to the users. Hopefully you understand what I don't understand. You might think of why I made a fuss about it. Because the macro makes the function expression no longer natural, elegant, beautiful, simple, etc. For example, `t^2-5*t+6` becomes `\t*\t-5*\t+6` which is not natural and of course the existence of `\` consumes more keystrokes. Do you think there is a benefit of the current syntax where the independent variable must be a macro?


title: XeTeX, change font usage when meeting greek characters (Sabon Linotype / Sabon Greek)

text: I love Sabon, and want to keep using it. However I'm running into a few problems when trying to use it with XeTeX. Problem is that Sabon LT does not contain the full greek alphabet, it is in a separate Sabon Greek font. So when I have defined Sabon LT as standard font in my XeTeX document, no greek characters are rendered when I use them in my unicode document, logically. I want to use the greek alphabet by typing directly in my unicode document, without using mathmode or anything else. Now I could merge Sabon LT with the Sabon Greek fontset using for example fontforge; creating a font that contains all missing characters. But I'm reluctant to do this as I don't have any experience with this and I'm afraid I might do something wrong So is there a convenient way to do automatically do this in XeTeX?: Swith to the separate Sabon Greek font, in case it meets any of the greek characters? In LaTeX I would just define a new command, but I want to be able to use the greek font by typing in the appropiate character in Unicode directly. All help is appreciated!


title: Refer to customized `enumerate` counter

text: ## Background I'm typesetting a list of conditions for a certain mathematical object. There are three conditions. Later on I wish to provide an equivalent condition for the third. Therefore, it would be nice to have this kind of numbering: > c) condition 1 > > b) condition 2 > > c) condition 3 while later on there would be > c') condition 3 (alternative) My idea was to use a `\label{c}` for the original condition and write               \item[\ref{c}]\label{c-prime} ...      and it hoping it would be able to refer to c') this way. But `\ref{c-prime}` results in the number of the definition, not in the enumerate counter. ## Solution I've got a solution, based on a hard-coded starting point for the counter and fixed layout. Using `enumitem` I can write               \begin{enumerate}[label=\alph*'),ref=(\alph*'),start=3]      and everything works smoothly ## Question There are some drawbacks:   * I have to hand pick the starting point for the counter, rendering it impossible to automatically change the ordering;   * the formatting for labels and references is hard-coded, if I change the global format I still have to adapt it locally. What can I do to make this more flexible? I am aware this is a rather academic question as it already works, but I'm curious


title: Remove vertical space before table of contents title

text: I've been trying to figure out a way to easily reduce the space/gap from the top of the page to the table of contents title, as in to reduce the vertical space before the table of contents begins. Below is my MWE:               \documentclass[final,a4paper,11pt]{report}          %%% Packages %%%     \usepackage[hidelinks,breaklinks]{hyperref} % hyperref for linking references for pdf     \usepackage{tocloft}    % tocloft for table of contents style     \usepackage[compact]{titlesec}  % titlesec for title section layout          % Format the title for chapters     \titleformat{\chapter}[hang]{\huge\bfseries}{\thechapter.}{1em}{}     \titlespacing*{\chapter}{0pt}{-3em}{1.1\parskip}     \titlelabel{\thetitle\quad}          % Begin document     \begin{document}          \tableofcontents     \addtocontents{toc}{\vskip-40pt} % this is to reduce the gap for the first table of contents entry          \clearpage          \chapter{Introduction}     \section{Background}     Need to reduce the space before the Contents title, was able to reduce the space before chapter fine.     \end{document}      How does the `report` class handle the table of contents? It doesn't seem to be a chapter, else it would have moved up when I changed the chapter spacing?


title: How to plot polygon using TikZ

text: I would like to plot a 2D $x_1 - x_2$ coordinate system and a _shaded_ polygon specified by $ −3x_1 + 4x_2 \leq 4, 3x_1 + 2x_2 \leq 11, 2x_1 − x_2 \leq 5, x_1 , x_2 \geq 0 $ How to draw this using TikZ? Thanks and regards! * * * Update: I just learned something from this post (or if you have better idea, please don't hesitate to reply). Here is my plot and I was wondering how to add different shades to the polygon enclosed by the solid lines and to the polygon enclosed by the dashed lines? ![alt text](http://i.stack.imgur.com/QJh84.png) Here is my code:               \documentclass{article}     \usepackage{tikz}     \begin{document}          \begin{tikzpicture}         \draw[very thin,color=gray] (-0.1,-0.1) grid (4.9,3.1);             \draw[->] (-0.2,0) -- (4.2,0) node[right] {$x_1$};         \draw[->] (0,-0.2) -- (0,3.2) node[above] {$x_2$};              \draw[domain=0:3] plot (\x,{1+ 0.75 * \x}) node[above right] {$-3x_1+4x_2 =4$};         \draw[domain=1.5:4] plot (\x,{5.5 - 1.5 * \x}) node[below right] {$3x_1 + 2x_2 = 11$};         \draw[domain=2:4] plot (\x,{-5+2 * \x}) node[below right] {$2x_1 - x_2 =5$};               \node at (2,3) {(2, 2.5)};         \node at (3.5,1) {(3, 1)};         \node at (3,-0.25) {(2.5, 0)};             \node at (-0.25,-0.25) {(0, 0)};         \node at (-0.5,1) {(0, 1)};              \draw[dashed] (0,1) -- (2,2);         \draw[dashed] (2,2) -- (3,1);         \draw[dashed] (3,1) -- (2,0);          \draw[dashed] (2,0) -- (0,0);          \draw[dashed] (0,0) -- (0,1);               \node at (2,1.5) {(2, 2)};         \node at (2,-0.25) {(2, 0)};          \end{tikzpicture}     \end{document}


title: Rotate images in animations

text: i tried to have the animations in landscape but failed. please click below http://www.twd-wind.com/inflowrc.pdf you will see the first page the text is in landscape page, the second page the page layout is landscape but the graphics are not. following is the tex code i used.               \documentclass{article}     \pagestyle{empty}     \usepackage{pdflscape}     \usepackage[%       pdftitle={},%       pdfauthor={},%       pdfsubject={},%       pdfcreator={},%       pdfproducer={},%       pdfstartview=Fit,%       bookmarks=false,%       pdfkeywords={}]{hyperref}     \usepackage{animate}     \usepackage{graphicx}     \begin{document}     \begin{landscape}     \begin{center}     Sample Test\\     \makebox[\textwidth]{\animategraphics[controls,timeline=timeline_R.txt]{1}{inflow}{1}{5}}     \end{center}     \end{landscape}     \end{document}       any ideas to have the graphics also in landscape and the animation control below it???? thanks in advance. graham


title: XeTeX + hyperref + glossaries + glossary-superragged = Margin mess

text: I am using the `glossaries` package in my dissertation. I am trying to apply the `superragged3col` to my acronym list, which requires an extra package `glossary-superragged`. The thing is that while using this in XeTeX the acronym list comes out all out place and overlaps the margins. If I remove the style option it works fine, but I would like to use that style if possible. Example   Acronym definitions ![What happens 1](http://i.stack.imgur.com/GIDth.png) ![What happens 2](http://i.stack.imgur.com/XVY8t.png) I have narrowed it down to one of two packages. Its either a problem in `hyperref` or `glossary-superragged`. If both are defined the margins are violated.


title: Syllabus in LaTeX

text: I need to produce a syllabus for a course I'm going to teach at the University. Could you suggest me any example (or template) of a well-designed syllabus in LaTeX? Are there any useful packages? Thanks in advance!


title: \lstlistoflistings does not add spaces by chapter

text: I'm quite new in LaTeX and ended up with this problem: I'm using list of tables and list of lstlistings (`\listoftables`, `\lstlistoflistings`), both numbered by chapter. List of tables does add spaces before new chapters, list of lstlistings does not (see images below). How I can unify this behavior? I would prefer to create spaces also in list of lstlistings, but removing it from list of tables is still more suitable than the current situation. Thanks for advices. //edit: added minimal working example               \documentclass[12pt,a4paper]{report}     \usepackage[czech]{babel}     \usepackage{listings}     \begin{document}          \chapter{foo}     \begin{table}     \caption{Foo table}     \end{table}     \begin{lstlisting}[caption=Foo script]     ...     \end{lstlisting}          \chapter{bar}          \begin{table}     \caption{Bar table}     \end{table}     \begin{lstlisting}[caption=Bar script]     ...     \end{lstlisting}          \listoftables     \lstlistoflistings     \end{document}      ![enter image description here](http://i.stack.imgur.com/cf6Du.png) ![enter image description here](http://i.stack.imgur.com/P303Q.png)


title: Linebreak in math environment

text: I have an odd problem, I tried already all possible things, `align`, `eqnarray`, `$`, `\[ \]` and so on, but the following stays the same: I have a formula inside text and it is not broken, so it goes into the right margin, how can I say LaTeX it should do a linebreak? Here's the code:               \documentclass{book}     \usepackage{geometry}     \geometry{left=4cm,right=3cm, top=2cm, bottom=2cm}      \usepackage[pagestyles]{titlesec}     \titlespacing*{\chapter}{0pt}{-30pt}{20pt}     \titleformat{\chapter}[display]{\color{headercolor}\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}               \usepackage[ngerman]{babel}     \usepackage{mathptmx}     \usepackage{helvet}     \usepackage{wallpaper}     \usepackage{color}     \usepackage[final]{pdfpages}      %,bookmarksopenlevel={1}     %\usepackage[hidelinks,bookmarks=true,bookmarksopen=true,bookmarksnumbered=true,colorlinks=true,linkcolor=black,]{hyperref}     \usepackage[hidelinks,bookmarksopen=false,     hypertexnames=TRUE,pdfpagelabels=true]{hyperref}[2011/02/05]%colorlinks,linkcolor=black,     \hypersetup{        pdftitle={},     %  pdfauthor={\textcopyright },       pdfsubject={statistics Buch},        pdfkeywords={},        }          \usepackage{xcolor,bookmark}     \usepackage{scrextend}     \usepackage{titlepic}     \usepackage{shorttoc}     \usepackage{courier}     \usepackage{type1cm}              \usepackage{zref-abspage}     \usepackage{graphicx}                            \usepackage{multicol}             \usepackage[bottom]{footmisc}     \usepackage{tocstyle}     \usetocstyle{allwithdot}      %\usepackage{thmbox}     \usepackage{shadethm}     \usepackage{amsthm}     \usepackage{amsmath}     \usepackage{marginnote}     %\usetocstyle{KOMAlike}     \usepackage{wrapfig}     \usepackage{paralist}     \usepackage{amssymb}     \usepackage[framemethod=tikz]{mdframed}     \usepackage{ulem}     \usepackage{fancyhdr}               \begin{document}          \pagenumbering{arabic}       %          %\pagestyle{mystyle}     \mainmatter     \section{text text}     text\\text a lot of text\\ and then the problem with the formula:\\     Die $x_i$ sind die Zuwachsraten, ingesamt haben wir 4 Jahre, es ergibt sich also \begin{eqnarray*}\bar{x}_{Geom}=\sqrt[4]{\prod \limits_{i=1}^{4} x_i}=\sqrt[4]{1,01*1,024*0,987*1,034 }=(1,01*1,024*0,987*1,034 )^{\frac{1}{4}}=1,0135957\end{eqnarray*} Wir machen die Probe: \\ and so on\\     \end{document}      Heres a screenshot: ![enter image description here](http://i.stack.imgur.com/CaelW.png) Any ideas?


title: tlmgr update problem

text: Anytime there is a failure to update a package TeXlive 2013, and try to reinstall through `-reinstall-forcibly-removed` command, it complains that it cannot install the file in question, as per the attached error message: > >     [18/22, 10:41/11:01] auto-install: tex4ht (33024) [872k] ... xzdec: > (stdin): Une >     xpected end of input >     tar: Only read 5492 bytes from archive > C:\Users\Robynet\AppData\Local\Temp\Ceq_m >     pa70v\tex4ht.tar >     untar: untarring > C:\Users\Robynet\AppData\Local\Temp\Ceq_mpa70v\tex4ht.tar faile >     d (in C:\texlive\2013) >     TLPDB::_install_package: couldn't unpack http://ctan.megagod.net/tex- > archive/sys >     tems/texlive/tlnet/archive/tex4ht.tar.xz to C:/texlive/2013 >     tlmgr.pl: couldn't install new package tex4ht >   As the problem with `tex4ht` started a couple of week ago, I supposed at the beginning was the problem with the Thai server. Last week I was in England, and the Oxford server, or whatever was serving Oxford Uni, gave me the same error. The same happened today for `pgfplots` package. So I was wondering what should be the procedure in order to let those two packages install.


title: Is there a way to automate everything except math mode?

text: I'm a math student, and I enjoy using LaTeX (god help me if I typeset that wrong) commands to write mathematical formulae. I'll also be needing it very soon to write papers. The thing is, though, and this is especially true when I'm writing for pleasure rather than work, when I sit down to write something, I don't want to be staring at this: ![enter image description here](http://i.stack.imgur.com/wkZ6e.png) I don't want 90% of the stuff on the screen to be typesetting commands - I want 99% of it to be my actual content. On the other hand, I loathe writing math in WYSIWYG editors, so I'd like my math mode stuff to be entirely hand- coded. Basically, I'd like a desktop version of the math.SE editor. Is there a way I can use LaTeX that will essentially handle everything _except_ math for me, and just let me write the math manually by typing in dollar signs? Note that I'm not necessarily asking for an editor recommendation - Texmaker seems nice enough. I'd be happy with maybe some sort of template system? Like I could have the boilerplate code in one file, and have it reference an external file, where I'd just type up the content. Something like that? I'm very new to LaTeX and have no idea what features are commonly available.


title: One big box contains three parallelly placed small boxes?

text: I am trying to make the three small boxes inside a big box with `tikz`. The three small backs are placed side by side at the bottom of the bog box. What I have tried so far is:               \documentclass[conference]{IEEEtran}     \usepackage{tikz}     \usetikzlibrary{backgrounds,calc,positioning}          \begin{document}         \begin{tikzpicture}[block/.style={draw, fill=white, rectangle, minimum width=0.4*\columnwidth, anchor=south}, font=\small]         \node[block, text width=0.1*\columnwidth, align=left](acc) at (0,0){Accelerometer};         \node[block, text width=0.1*\columnwidth, align=left](gyro) at (acc.east+0.1,0){Gyroscope};         \node[block, text width=0.1*\columnwidth, align=left](mag) at (gyro.east+0.1,0){Magnetometer};         \draw(0, 0)rectangle(0.4*\columnwidth, 0.4*\columnwidth);         \end{tikzpicture}     \end{document}      It cannot even be compiled.   1. Where is wrong? How may I modify it?   2. Why cannot `text width=0.1*\columnwidth` change the size of the boxes?


title: Defining a custom symbol by path in TikZ

text: I want to define a 2-to-1 multiplexer symbol, defined by this path:               (0,0) -- (1,-0.5) -- (1,-1.25) -- (1.3,-1.25) -- (1,-1.25)-- (1,-2) -- (0,-2.5) -- (0,-1.75) -- (-0.3,-1.75) -- (0,-1.75) -- (0,-0.75) -- (-0.3,-0.75) -- (0,-0.75) -- (0,0)      As a new command, so that it's easier to use (as you can imagine, movement and scaling is borderline impossible). What would be the best way to do this? For the record, this is just an example; I'm aware that this particular MUX is missing a select in.


title: Adding nomenclature to the preliminaries, page hyperlink wrong

text: I am customising a thesis template to include my glossary. By default this was going in the end, but I want to have it in the front, in the preliminaries section before chapter 1, where a different line spacing and page numbering (roman) is used. In the template `.cls` file I have now               ...     \newenvironment{declaration}{          \chapter*{Author's declaration}       \addcontentsline{toc}{chapter}{Author's declaration}       }{}     \newenvironment{conventions}{% !        \cleardoublepage       \addcontentsline{toc}{chapter}{\nomname}     }{}      Where I added myself the `conventions` environment. Then the preliminaries are creates as               \newcommand{\makeprelims}{       \setcounter{page}{1}\renewcommand{\thepage}{\roman{page}}       \pagestyle{empty}        \makecopyright       \cleardoublepage       \author{\iwroteit}           \maketitle       \cleardoublepage       \pagestyle{plain}        \begin{abstract}         { \Large {\bfseries\sffamily {\@title}} \bigskip \par}         {{\large \@author} \bigskip\par}             \input{prelims/abstract}           \end{abstract}       \tableofcontents       \listoffigures       \listoftables       \lstlistoflistings       \begin{acknowledgements}             \input{prelims/acknowledgements}       \end{acknowledgements}        \begin{declaration}         \input{prelims/declaration}       \end{declaration}        \begin{conventions}% !         \input{prelims/conventions}         \printnomenclature       \end{conventions}       \cleardoublepage          \setcounter{page}{1}        \renewcommand{\thepage}{\arabic{page}}                   \pagestyle{fancy}      }      Again, I just added the `conventions` stuff. The file `prelims/conventions.tex` simply consists of `\nomenclature` entries. This works _almost_ correctly, but the hyperlink in the table of contents for the conventions is wrong (although the page number is correctly printed). It actually points to the previous item ("Author's declaration"), as the following screenshot shows: ![enter image description here](http://i.stack.imgur.com/4HTxT.jpg) I ran nomenclature and latex multiple times, and there is no change in the behaviour, the hyperlink is still wrong. I looked at this question, but I do have a `\cleardoublepage` before `\printnomenclature`...


title: Duplicate Line command in TeXShop for Mac

text: I'm a quite new user of LaTeX and one thing I miss in TeXShop on mac is a "Duplicate Line"-command, espacially when writing mathematical derivations. It's my impression that it is possible to create a macro that does the trick, but unfortunately my programming skills are not that good, so does anyone have a solution? I found this solution for TextWrangler (https://groups.google.com/forum/#!msg/textwrangler/Orei3W7bsV4/kAGwnv9R_owJ). Are there a simple way of connecting the Applescript to TeXShop or does anyone have a script for the TeXShop macro editor? Thanks vegaso


title: Mathematica logo in LaTeX?

text: Is there any command for inserting the Mathematica logo, in the same way Matlab's can be inserted with `\Matlab`?


title: Newenvironment wrapper around widetable

text: I'm trying to create a custom environment `figs` based on `widetable`, using `\newenvironment`.               \documentclass{article}     \usepackage{widetable}          \newenvironment{figs}[1]{\begin{widetable}{\textwidth}{#1}}{\end{widetable}}          \begin{document}     \begin{widetable}{\textwidth}{|c|c|c|c|}     (a) & (b) & (c) & (d) \\     \end{widetable}     \begin{figs}{|c|c|c|c|}     (a) & (b) & (c) & (d) \\     \end{figs}     \end{document}      I intended the `\begin{figs}...\end{figs}` part in the code to expand to the `\begin{widetable}...\end{widetable}` part right above it. But this crashes with the error "File ended while scanning use of `\wt@finishTable`." If I remove the `\begin{figs}...\end{figs}` part from the code then it compiles perfectly well. Did I make a mistake inside the `\newenvironment`?


title: How to get text flow to start one column at a time for multiple columns?

text: I'm making a document that has 3 columns, but I've noticed that the text spreads over all three columns as I'm typing the document. If anyone is familiar with how multicolumn works in Microsoft Word (or whatever word processor Microsoft uses now), it fills the the text one column at a time. I was wondering if there was a package or some code I could use to get my text to fill this way. This mechanism is okay if I plan to use to whole page, but if my text doesn't take up the whole page, then I have half of my sentence in one column and the other in the 2nd/3rd column. I tried Googling and got zilch. Perhaps my search parameters needed to be more generalized, but I would really appreciate if anyone who understands what I mean can help me figure this out. Thanks in advance!


title: \input - \return-command

text: I'm looking for a command like `\return` with which I can manually exit a TeX file, which is included by `\input`. (At the end of my TeX file are some notices, which I sometimes want to print, sometimes not.)


title: Change the equation number in alignat

text: I have the following equations with-in alignat environment               $\begin{alignat}{4}     &p^0\colon\od{u_0(x)}{x} = 0 \quad &\text{with} \quad u_0(0) = 1, \\     &p^1\colon \od{u_1(x)}{x} -u_{{0}} \left( x \right) =0 \quad &\text{with} \quad u_1(0) = 0, \\     &p^2\colon \od{u_2(x)}{x} -u_{{1}} \left( x \right) =0 \quad &\text{with} \quad u_2(0) = 0, \\     &p^3\colon \od{u_3(x)}{x} -u_{{2}} \left( x \right) =0 \quad &\text{with} \quad u_3(0) = 0. \\     \end{alignat}$      In my document these equations are numbered as (1), (2), (3) and so-on. How can I number these equations as (1.1), (1.2), (1.3) without affecting other equations that will come after these equaitons? Thank you for helping me.


title: Is there a \phantom considering cramped style?

text: In LaTeX2e, `\phantom` is defined as               \def\vphantom{\v@true\h@false\ph@nt}     \def\hphantom{\v@false\h@true\ph@nt}     \def\phantom{\v@true\h@true\ph@nt}     \def\ph@nt{%       \ifmmode         \expandafter\mathpalette\expandafter\mathph@nt       \else         \expandafter\makeph@nt       \fi}     \def\makeph@nt#1{%       \setbox\z@\hbox{\color@begingroup#1\color@endgroup}\finph@nt}     \def\mathph@nt#1#2{%       \setbox\z@\hbox{$\m@th#1{#2}$}\finph@nt}     \def\finph@nt{%       \setbox\tw@\null       \ifv@ \ht\tw@\ht\z@ \dp\tw@\dp\z@\fi       \ifh@ \wd\tw@\wd\z@\fi \box\tw@}      It means that, in math mode,               $\sqrt{\phantom{x^2}}$      has the same size of               $\sqrt{\hbox{$x^2$}}$      but differs from               $\sqrt{x^2}$      since `x^2` in `\sqrt` is in cramped mode. I know that `mathtools` package provides a `\cramped` macro to solve the problem, but is there an automatical method? * * * Test code:               \documentclass{minimal}     \usepackage{mathtools}     \begin{document}     \fontsize{60}{72}\selectfont     $\sqrt{x^A} \sqrt{\hbox{$x^A$}}$          $\sqrt{\phantom{\cramped{x^A}}} \sqrt{\phantom{x^A}}$      \end{document}      ![enter image description here](http://i.stack.imgur.com/tzcA7.png)


title: algorithm2e with ruled but with customized rule thickness

text: I would like to present an algorithm in my work and I used the package `algorithm2e`. I wonder if there is a way to control `hrule` thickness with `ruled` option, so one can use thicker line pre-caption or post of it. Any help is much appreciated.


title: TikZ: Get values for predefined dash patterns

text: Is there a way to get values for predefined dash patterns such as `dotted`? I would like to use those in another program to create the same visual experience. Or do I have to define my own patterns in order to have the same values?


title: What are the Easiest/Cleanest way to create arrays for illustrating quicksort with tikz?

text: I am trying to visualize quicksort on an array with just a few elements. I am not sure of how to do this in TikZ. I want to create something like this: ![enter image description here](http://i.stack.imgur.com/GKl9Y.png) Suggestions?


title: Showing section numbers on beamer footline except 0

text: I'm working on a beamer presentation using the Madrid theme, and I've created my own footline. Everything is fine, but I would like to include section information in the footline beneath the title, specifically, something formatted like "Sec. # - Section Title", where # is the section number. I can do this just fine, except that before the first section I have "Sec. 0 - ", and I was wondering if there was a simple way of hiding this, or having it not display until the first section is reached.               \documentclass{beamer}     \usepackage{ amsmath, amssymb}     \setbeamertemplate{navigation symbols}{}     \usetheme{Madrid}     \setbeamertemplate{blocks}[rounded][shadow=true]          \definecolor{darkblue}{RGB}{0,0,120}          \setbeamercolor{author in head/foot}{fg=white,bg=black}     \setbeamercolor{title in head/foot}{fg=white,bg=darkerblue}     \setbeamercolor{date in head/foot}{fg=white,bg=darkblue}     \setbeamercolor{frametitle}{fg=white,bg=darkblue}     \makeatletter     \setbeamertemplate{footline}     {       \leavevmode       \hbox{            \begin{beamercolorbox}[wd=.5\paperwidth,ht=4ex,left]{author in head/foot}%          \usebeamerfont{author in head/foot}             \begin{tabular}{l}             \insertshortauthor\\             \insertshortinstitute             \end{tabular}       \end{beamercolorbox}%       \begin{beamercolorbox}[wd=.5\paperwidth,ht=4ex,left]{title in head/foot}%              \usebeamerfont{title in head/foot}             \vspace*{-2pt}             \begin{tabular}{l}             \insertshorttitle\\             \insertsection~~\beamer@ifempty{\phantom{section}}{}{}             \end{tabular}       \end{beamercolorbox}     }       \vskip0pt     }     \makeatother               \title{A Title}     \author{The Author}     \institute{The Institute}     \date{\today}          \begin{document}     \begin{frame}     \titlepage     \end{frame}          \begin{frame}{Outline}     An outline.     \end{frame}          \section{The First Section}     \begin{frame}     A frame.     \end{frame}     \end{document}


title: Error bibtex with jabref

text: I've made a little bib file with jabref. When i compile it with Texmaker (F11) I obtain:               **This is BibTeX, Version 0.99d (MiKTeX 2.9) The top-level auxiliary file:        prueba.aux The style file: apalike.bst Database file #1: bibio.bib Warning--I      didn't find a database entry for "S�nchez" (There was 1 warning)**      The bib file is:               % This file was created with JabRef 2.9.2.     %  Encoding: Cp1252          @BOOK{Sanchez,       title = {Problemas Resueltos De M\'{e}todos Num\'{e}ricos},       publisher = {Thomson},       year = {2006},       author = {Alicia Cordero Barbero and Jos\'{e} Luis Hueso Pagoaga and Eulalia         Mart\'{i}nez Molada and Juan Ram\'{o}n Torregrosa S\'{a}nchez},       pages = {37-69},       edition = {1},       isbn = {84-9732-409-9},       url = {www.paraninfo.es}     }          @BOOK{Cabezas,       title = {M\'{e}todos Num\'{e}ricos Teor\'{i}a, problemas y pr\'{a}cticas con         MATLAB},       publisher = {Pir\'{a}mide},       year = {2007},       author = {Juan Antonio Infante Del R\'{i}o and Jos\'{e} Mar\'{i}a Rey Cabezas},       pages = {435-483},       edition = {3},       isbn = {978-84-368-2090-4}     }      In the pdf i don't see Sanchez entry and i see Cabezas entry


title: mathtype equation are not converting in editable format

text: I am trying to convert the document. It is converting but the 'mathtype' equations are not coming in editable format; they are coming in PNG format. could you please tell how to convert the equation for editable?               T1 = Q(0) =     1/2     .(lamda_1)


title: Problem with rotated pages (pdflscape package) and double-sided printing

text: I am using the `pdflscape` package to rotate pages with wide tables on them. This works fine, but there is a problem when I print the document in duplex mode. Its a double-sided document (left and right pages, using the `twoside` option from the `scrbook` document class). The right pages print correctly, but the left pages (only those set in landscape mode) are printed upside down. How can I fix this?


title: Table Design Help

text: I'm trying to mimic the design of this table: ![enter image description here](http://i.stack.imgur.com/yWQy3.png) Any advice?


title: How can I use latex2rtf with biblatex?

text: I would like to output a .tex file in .rtf format. Latex2rtf does the job, except that it does not support biblatex ("package/option unknown"); thus, in the rtf, the citations are replaced with "[Error: Reference source not found]". Is there a way to get latex2rtf to work with biblatex? If not, what is the easiest way to move from tex to rtf with citations intact?


title: Need to find a way to time-stamp edits done with the changes package

text: I have a document which uses the `changes` package. A friend and I are planning to co-author an Analysis textbook, and I have things set-up so that each of us can edit the `.tex` file and then make edits using the `changes` package. Is there a way to date-stamp those edits? Or, is there another package similar to `changes` that would allow for a time-stamp? Also, do I need to add a MWE, or is this a case where the question can be answered without one?


title: How to draw a thin rectangle

text: I was trying to draw a rectangle like this (there would be only one letter per row in the rectangle). But none of `\\`, `\linebreak`, `\newline` seems to work. How can I do this? ![](http://i.stack.imgur.com/wqppA.png) Well, I tried this:               \documentclass{standalone}     \usepackage{tikz}          \begin{document}          \begin{tikzpicture}[node distance=1cm, auto]       \tikzset{         man/.style={rectangle}     }       \node[man] (man) {A \\ B \linebreak C \newline D};     \end{tikzpicture}           \end{document}


title: does LaTeX support native multifile management?

text: This is not really a practical question, but more of an academic one: I use emacs to write my LaTeX files and in order to process multifile documents I include at the end of each file a local variable `%%% TeX-master: "master"` that tells emacs that when I compile this file I actually want to compile the file "master.tex". Now I was just wondering if there is a way to do this in LaTeX something like `\setmaster{master}` or `\includedin{master}` that one can simply put in the begining of the file and it tells directly to the compiler it should start looking at the other file first.


title: Making LaTeX tabular environment behave well under copy/paste

text: Whenever I copy a table created with the LaTeX `tabular` environment from the output `.pdf` file and paste it into a word processor, all the entries go to different lines. Worse, the first column is copied, then the second, and so on. Is there any way to make the table retain some of its original format? That is, when pasted into a word processor, you see something like this:               row 1 contents...          row 2 contents...          and so on...      Here is the code I am using (to ensure that the columns have fixed width):               \usepackage{array}     \newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}     \newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}     \newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}          \begin{tabular}{L{6cm}  L{7cm}  R{2.5cm}}          a & b & c\\          d & e & f\\          g & h & i          \end{tabular}


title: Font problems when using IPAexMincho

text: I am trying to run some fonts named IPAexMincho in latex under win 8 using MikTeX under TeXnic, but I got error messages in regard to not being able to run Kanji map when I have the following valid settings (well, valid in the sense that I tried them out with other installed fonts and they just appeared to work find.               \documentclass{article}      \usepackage{xltxtra}      \usepackage{amsmath,amssymb}     \usepackage{fontspec}     \setmainfont[Mapping=tex-text]{IPAexMincho}     \usepackage{sansmath}     \begin{document}     helo word.     \end{document}      So when I do XeLaTeX , the resulting `pdf` does not even get generated. The specific warning messages I get               xelatex> Warning Couldn't open font map file "kanjix.map".     xelatex> Warning Invalid glyph name index number : 12502 (>= 12495)     xelatex> Warning Invalid version 2.0 'post' tabe     xelatex> Error Could not obtain necessary font info      I of course obtain three other warnings XeLaTeX to `xparse/refedefine-command` but I don't think that those are crucial for this problem. Yes, I know there are similar seemingly helpful posts here xetex complains about missing kanjix.map and some posts related to setting a new fonts in the main text. The problem though is that with other Japanese fonts, I seem not to have this problem. Cheers, T


title: List of symbols for each chapter

text: I am writing a thesis with several chapters, and some symbols are used in multiple chapters but their definitions are different from chapter to chapter. I would like to have one list of symbols at the beginning of the document, but symbols of each chapter will be separated by chapters' name. Something like this: **List of symbols**               chapter 1             S size            chapter 2             S area      * * *               Chapter 1            S is the radius of the cell.          Chapter 2            S is the area.


title: Bold font issue with uarial package

text: I am using `uarial` for typesetting my document in Arial, but I found that there's no bold font. How can I have a boldface font with the `uarial` package?               \documentclass{article}     \usepackage{uarial}     \renewcommand\familydefault{\sfdefault}      \begin{document}      \textbf{sample data}      \end{document}


title: TeX ignores \vskip at the beginning of document

text: Here is a simple Plain TeX snippet for demonstration               \vskip 3in     Aaaaa     \vskip 3in     Bbbbb     \end      When I compile this with pdftex, I expect to see a 3-inch-high blank space, then Aaaaa, followed by another 3-inch-high blank space, then Bbbbb. But the first \vskip appears to be ignored by TeX. On the other hand, when I do this               \hrule height 0pt     \vskip 3in     Aaaaa     \vskip 3in     Bbbbb     \end      The output is what I expect. But I see no reason why a dummy 0-point-hrule is necessary.


title: how to make fbox produce similar result to boxed from amsmath when used inside display math?

text: I use Scientific word to generate Latex, and from its GUI, it only supports `\fbox` to put a frame around a displayed equation. i.e. I select the equation from the GUI and click on a button which adds a frame. The latex it generates adds `fbox` inside `\[...\]` and so I have no control over this. What I can do is add something in the preamble of the latex file that can fix or improve something it does. The problem is that `\fbox` seems to change the size of the math on the right side of the equation compared to the left side. When I do the same thing using `\boxed` I get much better result, which is what I want. (but again, the GUI generates `\fbox` and there is no way to tell SW to use `boxed` instead). Here is a MWE and it is clear that `fbox` output is not right. At first I thought if I make the `fboxsep` larger that will fix it, but that has no effect at all on the font size. Is there something else I can add to preamble to make the result look like `\boxed`? One last thing, I can't just change `\fbox` by `\boxed` using some smart text replacement macro, as SW will not longer be able to display the equation on the screen then, since it does not know what `\boxed` is.               \documentclass[11pt]{article}%     \usepackage{amsmath}     \setlength{\fboxsep}{10pt}     \begin{document}          \[     \fbox{$x_1\left(  t\right)  =x_{20}\frac{t}{1+t^2}+\frac{1}{\sqrt{\left(     1+t^2\right)  }}$}%     \]          \[     \boxed{x_1\left(  t\right)  =x_{20}\frac{t}{1+t^2}+\frac{1}{\sqrt{\left(     1+t^2\right)  }}}%     \]          \end{document}      Result is ![Mathematica graphics](http://i.stack.imgur.com/xmupM.png)


title: Multifile and dvi output from the 'master.tex'

text: I have a report composed of multiple files where I name the master file as 'master.tex' and set (setq-default TeX-master "master") in my .emacs file. I compile the master file and try to click the 'view dvi button' on the auctex toolbar in emacs, however it does not open any viewer nor it gives any error messages. But if I open one of the files that is included from the master file and compile the whole document from under the included file and try to view the resulting dvi, it works and I can see the complete dvi. The question is that why can't I do the same from the master file, I mean viewing?(Trying on a simple example with two files, I can see the dvi from both the master and the included file, so there is sth mistaken for the above case.) Compiling master file goes fine along with bibtex however viewing does not work, what could be the reason behind this?


title: Trying to make an automatic histogram (in pgfplots?)

text: How can I convert the automatic table generated by the macro, to an automatic histogram? Is the best way do it using `pgfplots`?               \documentclass{article}          \RequirePackage{ifthen}     \RequirePackage{siunitx}     \RequirePackage{booktabs}     \RequirePackage{xparse}          % **********************************************************     \ExplSyntaxOn     % **********************************************************          \tl_const:Nx \c_aw_the_alphabet_tl {abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ,.;?()!' \token_to_str:N :}          \tl_new:N \l_aw_tab_rows_tl     \seq_new:N \g_aw_theor_rats_seq     \seq_new:N \g_aw_the_alphabet_seq          \seq_gset_split:Nnn \g_aw_theor_rats_seq {,}     {0.0651738,0.0124248,0.0217339,0.0349835,0.1041442,0.0197881,0.0158610,0.0492888,0.0558094,0.0009033,0.0050529,0.0331490,0.0202124,0.0564513,0.0596302,0.0137645,0.0008606,0.0497563,0.0515760,0.0729357,0.0225134,0.0082903,0.0171272,0.0013692,0.0145984,0.0007836,0.1918182}               \NewDocumentCommand {\showtable}{}         {           \clearpage           \thispagestyle{empty}           \aw_make_table:         }          \cs_generate_variant:Nn \seq_set_split:Nnn {NnV}     \cs_new:Npn \aw_make_table:         {           \seq_set_split:NnV \g_aw_the_alphabet_seq {} \c_aw_the_alphabet_tl           %takes corresponding letter/theoretical ratio pairs from sequences and applies function           \seq_mapthread_function:NNN \g_aw_the_alphabet_seq \g_aw_theor_rats_seq \aw_generate_row:nn         \begin{table}             \centering             \footnotesize           \begin{tabular}{cS}             \toprule             {Letter}&{Actual}\\             \midrule             \textvisiblespace&1\%\\             \tl_use:N \l_aw_tab_rows_tl             \bottomrule           \end{tabular}\par         \end{table}         }          \cs_new:Npn \aw_generate_row:nn #1#2         {           \tl_put_right:Nn \l_aw_tab_rows_tl {#1&}           \tl_put_right:Nn \l_aw_tab_rows_tl {\fp_eval:n{100*{#2}}\%}           \tl_put_right:Nn \l_aw_tab_rows_tl {\\}         }          % **********************************************************     \ExplSyntaxOff     % **********************************************************          \begin{document}          \showtable{}          \end{document}      * * * I have try this way but I get some errors:               ...          \usepackage{pgfplots}          \pgfplotsset{%                 /pgf/number format/use comma,%                 compat=newest}          ...           \begin{figure}     \centering       \begin{tikzpicture}         \begin{axis}         \addplot coordinates{%                             (\textvisiblespace,1)                             \tl_use:N \l_aw_tab_rows_tl%                             };         \end{axis}       \end{tikzpicture}     \caption{histogram.}     \end{figure}          ...          \cs_new:Npn \aw_generate_row:n #1         {            \tl_put_right:Nn \l_aw_tab_rows_tl {(#1,}           \tl_put_right:Nn \l_aw_tab_rows_tl {\fp_eval:n{100*{#2}})}         }          ...


title: Draft Watermark with Beamer

text: Is is possible to use `\usepackage{draftwatermark}` with beamer? I tried it, and the watermark does not show on the slides:               \documentclass{beamer}     \usepackage{draftwatermark}          \author{Test}     \title{Sample document for the draftwatermark package}          \begin{document}          \maketitle          \begin{frame}{Test}     test frame     \end{frame}          \end{document}


title: Section numbering changes in TOC, but not in body - specific to IEEEtran

text: I'm having a strange issue with the IEEEtran package. I'm using `\renewcommand\thesection{\arabic{section}}` and so on to change the section, subsection, and subsubsection numbering. As mentioned in the title, I see the changes in the TOC, but not in the body of the document. MWE is below:               \documentclass[]{IEEEtran}          \renewcommand\thesection{\arabic{section}}     \renewcommand\thesubsection{\thesection.\arabic{subsection}}     \renewcommand\thesubsubsection{\thesubsection.\arabic{subsubsection}}          \begin{document}          \tableofcontents          \section{Introduction}     Words, words, all words          \section{Big section}          \subsection{Section Three}          \subsubsection{SubSection Three}~\\     texty text          \subsubsection{title}~\\     texty text          \end{document}      ![enter image description here](http://i.stack.imgur.com/q3Yea.png)


title: Text in itemize in column with tikz exeeds margin

text: I'm new to tikz but I don't think the problem is tikz itself. What I want to obtain is simple, a list of file names with an arrow for each element pointing to the middle of and interval of a tikz image.               \documentclass[10pt]{beamer}          \usepackage[english]{babel}     \usepackage[latin9]{inputenc}     \usepackage{graphicx,amsmath,amsfonts,float,times,subfig,tikz}     \usepackage[T1]{fontenc}     \usetheme{Boadilla}          \makeatletter     \setbeamercovered{transparent}          \newcommand{\tikzmark}[1]{\tikz[overlay,remember picture] \node (#1) {};}     \usetikzlibrary{shapes}     \usetikzlibrary{calc}     %\setbeamertemplate{itemize item}{-}               \begin{document}          \begin{frame}       \frametitle{Creation Of The Database}            \begin{columns}         \begin{column}{.8\linewidth}           \begin{exampleblock}{}             \begin{itemize}                \item \texttt{RawCh\_NoiseCalib\_Ped.iov.179600\_tnf1\_180474\_Ped.root} $\tikzmark{n1}$               \item \texttt{RawCh\_NoiseCalib\_Ped.iov.180390\_tnf1\_180474\_Ped.root} $\tikzmark{n2}$               \item \texttt{RawCh\_NoiseCalib\_Ped.iov.180600\_tnf1\_180474\_Ped.root} $\tikzmark{n3}$               \item \texttt{RawCh\_NoiseCalib\_Ped.iov.181233\_tnf1\_180474\_Ped.root} $\tikzmark{n4}$               \item \texttt{RawCh\_NoiseCalib\_Ped.iov.181530\_tnf1\_180474\_Ped.root} $\tikzmark{n5}$             \end{itemize}           \end{exampleblock}         \end{column} \hfill         \begin{column}{.2\linewidth}           \begin{tikzpicture}             \draw (0,0) -- (0,5);                  \node (a) at (0,0) [circle,fill, inner sep = 1.2] {};              \node (b) at (0,1) [circle,fill, inner sep = 1.2] {};              \node (c) at (0,2) [circle,fill, inner sep = 1.2] {};              \node (d) at (0,3) [circle,fill, inner sep = 1.2] {};              \node (e) at (0,4) [circle,fill, inner sep = 1.2] {};              \node (f) at (0,5) [circle,fill, inner sep = 1.2] {};                  \node (t1) at (0,0.5) {};             \node (t2) at (0,1.5) {};             \node (t2) at (0,2.5) {};             \node (t3) at (0,3.5) {};             \node (t4) at (0,4.5) {};                  \draw (f) node [right] {$181900$};              \draw (e) node [right] {$179600$};              \draw (d) node [right] {$180390$};              \draw (c) node [right] {$180600$};              \draw (b) node [right] {$181233$};              \draw (a) node [right] {$181530$};           \end{tikzpicture}         \end{column}       \end{columns}            \tikz[overlay,remember picture,-latex] \draw[out = 0, in = 0] ($(n1)$) to ($(t1)$);           \end{frame}     \end{document}      Any idea of what I'm doing wrong? Thanks for the help!


title: page number misaligned in toc

text: One of the headings of my paragraph is so long that it is pushing the page number in toc to the right side. it looks misaligned from rest of numbering. Yes, I am using paragraph as heading for giving numbering to it. So the heading is like \paragraph{some thing in the header (11235)} detailed text here ..... how do I give a break point between header and (11235) so that in ToC (11235) spills over to next line. My ToC currently looks like as in attached picture.![enter image description here](http://i.stack.imgur.com/lvrmI.jpg) I have attached a picture for better view.


title: Warnings and errors highlighting when compiling in Bash environment

text: I'm processing a large document, using `Latexmk` in a `Bash` environment. It would be very helpful if error and warning messages were somehow highlighted or coloured, in order to facilitate spotting them. Specially when dealing with `Biber` and `Biblatex`, catching the warnings on time is important, as they won't normally stop the compilation process when something comes out. Until recently, I was using the `LateX` bundle in `TextMate`, which helped showing only the most important messages (errors, warnings, inputs, includes, etc.) See here: ![TextMate compiling](http://i.stack.imgur.com/V3142.png) But I became deceptioned by that bundle and now I am compiling everything directly in the shell (`Bash` in Linux or Os X), as it gives me better control. (Of course I could open the `.log` file, and configure the editor to search for/highlight these items, but I was thinking of "in the fly" highlighting/colouring.) Is it possible to colour-code the `stdout` of `latexmk` (or in general of the `*Tex` bins)?


title: Emacs -- "fancy" LaTeX footer designed for regexp highlighting

text: I'm looking for some assistance, please, to modify my current footer setup to make it easier to create a reliable regexp for `font-lock` highlighting. Ideally, I'd like the bottom line of the right footer to look like: `\rfoot{Title of Document}`. The problem is that I need a line above, but I don't know how to separate this into two different sections -- i.e., I want `\makebox[2in]{\hrulefill}\\` all by itself. When fixed, I'd like to use a regexp similar to:               \\(\\\\rfoot{\\)\\([^}]*\\)\\(}\\)      My current setup looks like this:               % BEGIN footer     \pagestyle{fancy}       \cfoot{\vspace{-1mm} \ptm{-\thepage-} }         \rfoot{\makebox[2in]{\hrulefill}\\ Title of Document }     % END      Which creates a right footer like this:               __________________________              Title of Document      * * * **EDIT** : Based upon the helpful answer by @Paul Stanley, here is the revised font-lock regexp.               (font-lock-add-keywords 'lawlist-tex-mode (list            (list "\\(\\\\newcommand\\)\{\\(\\\\mytitle\\)\}\{\\([^}]*\\)\}"         '(1 font-lock-keyword-face t)         '(2 font-lock-function-name-face t)         '(3 font-lock-warning-face t))            (list "\\(\\\\settitle\\)\{\\([^}]*\\)\}"         '(1 font-lock-keyword-face t)         '(2 font-lock-warning-face t))             ))      * * * ![Example](http://www.lawlist.com/images/footnote.png)


title: Align denominator of fraction to left

text: The highlighted part has the equation centred, which looks rather imbalance with the top equation, is it possible to align the highlighted part to the left? Below is the code I am using.               \begin{equation}~\label{eq:prob1}     p_k(s)=     \begin{cases}         \displaystyle\frac{c_k-q_k(s)}{c_k- \overline{c_k}} & if\ q_k(s) >  \overline{c_k} \\         1                                                                      & if\ q_k(s) \leq  \overline{c_k}     \end{cases}     \end{equation}      ![enter image description here](http://i.stack.imgur.com/wCssN.png)


title: etoolbox conditional causes unwanted empty row in tabular

text: This code leaves an empty row at the bottom:               \documentclass{article}          \usepackage{etoolbox}          \def\somedef{foo}          \begin{document}          \begin{tabular}{|l|}       \hline       First row, not important \\ \hline       \ifdefstring{\somedef}{bar}{never used \\ \hline}{}%     \end{tabular}          \end{document}      The resulting table looks like:               ----------------------------     | First row, not important |     +--------------------------+     |                          |      It's that bogus empty row at the bottom that I want to get rid of. I know I can make this work by replacing the `\ifdefstring` with something like:               \ifnum\pdfstrcmp{\somedef}{bar}=0 never used \\ \hline \else\fi      But I'm interested in sticking to etoolbox, which seems to be a fairly comprehensive package with many relatively easy to read macros (for programmers, my audience). I'm also interested in using the conditional inline within the table, as that seems easiest to read and maintain. (If there's a better package that is similarly comprehensive that I should be using instead and it doesn't have the above problem, I'm very interested in hearing about that, too.) How can I use etoolbox's `\ifdefstring` here without adding the extra row? I suspect etoolbox either (a) has a bug (missing some `%`), or (b) is inserting something like `\relax`. Is there some way to discard/eat `\ifdefstring`'s seemingly invisible-yet-row-creating output?