title: why there is no direct typesetting in LaTeX for other than english language?

text: While using LaTeX I always wondered, why it is necessary to typeset any language other than english, like indic (devnagari) first in english as `.dn` file and then use some translator to translate it in indic syllab to generate `.tex` file. then compile, and then get the final pdf output... For english just by keying the english is enough and for other languages latex uses, "do not use latex hereafter approach" by using some translation mechanism... Is it possible for LaTeX developers to make use of other languages as easy as using English in latex... If so please do it or atleast ask some intelligent members of community to develope like that...


title: Overfull \hbox (15.0pt too wide)

text: I have multiple tables which look like this:               \begin{tabularx}{\textwidth}{|l|X|l|}     \hline     \textbf{ID} & \textbf{Description} \\ \hline     336858 & The description \\ \hline     \end{tabularx}      and I get for each one the warning: > Overfull \hbox (15.0pt too wide) in paragraph at lines X -- Y[][] As I understand this mean something in my table don't use enough space. Or according my search when I use explicit spacing. And thats the part I don't understand, because the Idea of `{|l|X|l|}` is that it use 100% width of the Document. And the output is expected. What did I miss or misunderstand? Why did I get this warning? **minimal example**               \documentclass[a4paper,10pt]{article}          \usepackage{tabularx}          \usepackage[utf8]{inputenc}     \usepackage[top=7em, bottom=4em, left=5em, right=5em]{geometry}     \usepackage{xcolor,colortbl}          \usepackage{hyperref}     \hypersetup{         colorlinks,         citecolor=black,         filecolor=black,         linkcolor=black,         urlcolor=black     }          \setcounter{section}{-1}          \title{Test}     \author{test author}          \begin{document}          \maketitle     \tableofcontents          \begin{tabularx}{\textwidth}{|l|X|l|}     \hline     \textbf{ID} & \textbf{Description} \\ \hline     336858 & The description \\ \hline     \end{tabularx}          \end{document}      I use pdflatex to build.               $pdflatex --version     pdfTeX 3.1415926-1.40.10-2.2 (TeX Live 2009/Debian)     kpathsea version 5.0.0     Copyright 2009 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).     There is NO warranty.  Redistribution of this software is     covered by the terms of both the pdfTeX copyright and     the Lesser GNU General Public License.     For more information about these matters, see the file     named COPYING and the pdfTeX source.     Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).     Compiled with libpng 1.2.46; using libpng 1.2.46     Compiled with zlib 1.2.3.4; using zlib 1.2.3.4     Compiled with poppler version 0.18.2


title: Errors using pdfx package to generate PDF/A

text: I need to submit my thesis in PDF/A format. I am using LyX, but I don't think that is relevant for my question. I get this error message when running `pdfx` package:               ! pdfTeX error (ext5): cannot open file for embedding.     l.137 ...eam attr{/N 4}  file{sRGBIEC1966-2.1.icm}      The documentation says to put any color file in the `pdfx` folder and rename it to `sRGBIEC1966-2.1.icm`. I have tried this and get the same error. Anyone know how to fix this?


title: SI units for sheet resistance using siunitx

text: I'm trying to get the package `siunitx` to output the units for sheet resistance (Ohm per square), with the square as a square box. My current solution (in text mode) is:               30-60 $\Omega/\square$      Which works, but I prefer to have it rendered using the `\SI` command, for code consistency. My closest approach within the `SIunitx` commands is               \SIrange{30}{60}{\Ohm/sq}      This doesn't output the box, but rather the letters `sq`. Simply using `\square` fails, since that is already defined as longhand for `^2`. Is there any way to output the square symbol within `SIunitx`?


title: Prevent LuaLaTeX from splitting umlauts

text: Here's a minimal example:               \documentclass{minimal}     \usepackage{fontspec}\setmainfont{Cambria}     \begin{document}aöz\end{document}      Compiling this into a PDF using `lualatex` and extracting the text using `pdftotext`, I get the string `aö z`, that is:               U+0061(a) U+006f(o) U+0308(combining diaeresis) U+0020(space) U+007a(z)      Two problems with this: there's an unnecessary space (due to some PDF formatting trickery, the uncompressed datastream shows `Tm[<…>125<01C5>-124<…>]TJ`), and I don't want the umlaut to be split into base and combining character because for some reason that renders weirdly when changing the font size. I want the output to be               U+0061(a) U+00f6(ö) U+007a(z)      And the worst thing: with `\setmainfont{Lucida Grande}`, I get exactly that. Just not with Cambria. Both are in TTF format. Checking the fonts in `fontforge` shows that both their `U+00f6` glyphs are defined as composed of `U+006f U+0308`, only difference being that Cambria defines its OTF Class as “Base Glyph” while in Lucida Grande it's “Automatic” (no idea what that means). * * * It is a `fontspec` specific problem:               \documentclass{minimal}     \usepackage{luaotfload}     \font\foo={name:Cambria} at 10pt     \begin{document}     aöz \foo aöz     \end{document}      generates what I expect, first umlaut missing as expected, too:               U+0061(a) U+007a(z) U+0020(space) U+0061(a) U+00f6(ö) U+007a(z)      but               \documentclass{minimal}     \usepackage{fontspec}     \begin{document}     aöz \fontspec{Cambria} aöz     \end{document}      generates               U+0061(a) U+00f6(ö) U+007a(z) U+0020 U+0061(a) U+006f(o) U+0308 U+0020 U+007a(z)      * * * Same when using `\DeclareUTFcharacter{x00F6}{\foo}` and replacing `ö` with `\foo{}`, so I guess it's not `xunicode`'s fault?


title: Quoting environment and tex4ht

text: I'm trying to convert some latex which includes the quoting environment, to html using _htlatex_. Here's a little example which gets typeset without any problems:               \documentclass{scrbook}     \usepackage{quoting}          \begin{document}     \chapter{Chapter one}     Here is a para          Here is a second para          \begin{quoting}     one para inside a small block.          another para inside the block.     \end{quoting}          Now for a para after the quote.          And another para after the quote.          What has happened? In the HTML version there are no para breaks!          \chapter{Chapter two}     Let's try after a chapter break.          That's good -- para breaks work now.          But what happened after the quoting environment in the previous chapter?     \end{document}      When I tried to run htlatex on this file it didn't know about the _quoting_ environment, so I created this tex4ht config file _configexample.cfg_ :               \Preamble{html}          \begin{document}      \ConfigureEnv{quoting}         {\HCode{<blockquote>}}         {\HCode{</blockquote>}}{}{}          \EndPreamble       Running this as `htlatex example.tex "configexample.cfg"` appears to work, and it creates _example.html_ , and even gets the blockquote tags in there. But after the end of the quoting environment, I don't get the p tags I expected. Not, that is, until after a chapter break. I don't know whether this is a tex4ht issue, or an issue with the _quoting_ package. I could go back to using the _quote_ environment, but I'd like to make this work first, if I can. Any ideas? (Running under MiKTeX)


title: Choosing a font for a thesis

text: I'm working on my thesis and I don't really know what font is the best choice for thesis work. I'm really convinced of only one thing: I don't want to use Times New Roman. First I checked on the latex fonts catalogue but there are too many fonts available. Which fonts do you think are the best for a thesis? I'm using `eulervm` for maths and I like it so much, but for simple text?


title: Display ' apostrophe

text: Is there a small package free way of implementing something like this, in pdflatex, and LaTeX? I wish for the outcome of               \documentclass{article}     \begin{document}         `It's a nice day!'     \end{document}      To be ʻIt's a nice day!ʼ I know that due to there being a single apostrophe inside the quote can mess up stuff, so I'm more then happy to use a function or macro, like '\apos' to insert it. I know that the apostrophe, that I want has the Unicode value of 39, so is in the standard ASCII implementation. "U+0027 ' apostrophe (HTML: & #39; & apos;) typewriter apostrophe." (Sorry for my poor TeX knowledge, this is my second day using it, so my terminology/knowledge is limited.)


title: Changing language of flyspell (Emacs) with a shortcut

text: I'm using the following code to launch `flyspell` when I edit LaTeX files with Emacs+AUCTeX.               (if (file-exists-p "/usr/bin/hunspell")         (progn           (setq ispell-program-name "hunspell")           (eval-after-load "ispell"             '(progn (defun ispell-get-coding-system () 'utf-8)))))               (global-set-key [f2] 'flyspell-mode)     (add-hook 'LaTeX-mode-hook 'flyspell-mode)      You can notice `flyspell` is automatically started when in the LaTeX mode (AUCTeX mode) and could be disable/enable with the shortcut `F2`. The configuration uses `hunspell` (which is much better than `ispell` or `aspell` in my opinion) with the system default language (in my case: French). I would like to be able to change the language with a shortcut. I'm writing in French and English (sometimes inside the same document) and I would be able to switch language in an quick way during editing. For example, it would be wonderful if I could choose English dictionary with `F4` and go back to the default French dictionary with `F3` (when `F2` is still used to toogle on/off `flyspell`). P-S : For now, I'm doing the switch with `M-x` `ispell-change-dictionary` but it isn't very efficient.


title: \dotfill linebreak problem

text: I am generating an address book in XeTeX and found a problem I cannot solve. So an address book is a list of Names, addresses and number split in columns. Ideally, one entry should look like this (underscores represent space): > Name.........Number > > Address_ ___ __Number2 I had no problem achieving this layout, there is only a small problem when name is to long and splits into more lines, then it should look something like this: > Long nameeeeeeeeeeee > > more name .......Number or > Long nameeeeeeeee > > ...............Number The first one is also not a problem, but second one gives me headaches. It turns out like this: > Long nameeeeeee > > Number There are no dots... Here is simplified (but enough to reproduce the problem) version of my code:               \documentclass[a4paper,11pt]{book}          \usepackage[b4paper, left=2cm, right=1.5cm, bottom=4cm, top=2cm]{geometry}     \usepackage[croatian]{babel}     \usepackage[T1]{fontenc}     \usepackage{xcolor}     \usepackage{fancyhdr}     \usepackage{graphicx}     \usepackage{fontspec}     \usepackage{xunicode}     \usepackage{xltxtra}     \usepackage{xcolor}     \usepackage{multicol}          % Font     \setmainfont{Calibri}          \begin{document}     \begin{multicols}{5}       % Case 1       \noindent       \vbox {\vfil         \hbox to \columnwidth {           \parbox{0.97\columnwidth}{             \scriptsize             \raggedright{\textbf{Name}}\dotfill~(XX)~XXX~XXX\\             \emph{Address}\hfill~(XX)~XXX~XXX}         }         \vfil       }            % Case 2       \noindent       \vbox {\vfil         \hbox to \columnwidth {           \parbox{0.97\columnwidth}{             \scriptsize             \raggedright{\textbf{Name Lorem Ipsum Lorem Ipsum Lorem Ipsum}}\dotfill~(XX)~XXX~XXX\\             \emph{Address}\hfill~(XX)~XXX~XXX}         }         \vfil       }            % Case 3       \noindent       \vbox {\vfil         \hbox to \columnwidth {           \parbox{0.97\columnwidth}{             \scriptsize             \raggedright{\textbf{Name Lorem Ipsum Lorem}}\dotfill~(XX)~XXX~XXX\\             \emph{Address}\hfill~(XX)~XXX~XXX}         }         \vfil       }          \vspace*{\fill}     \end{multicols}     \end{document}      (Actually I defined class and each address-book entry is a command.) So, could you help me diagnose this problem? Why doesn't `\dotfill` push the number to the right in the third case?


title: Broken automatic line breaking in section titles when ulem and hyperref are used

text: I am trying to use the `ulem` package to underline section titles while still being able to have automatic line breaking:               \documentclass{scrartcl}      \usepackage[normalem]{ulem}     \begin{document}         \addtokomafont{section}{\uline}         \section{A section title so long that it causes a line break. A section title so long that it causes a line break.}     \end{document}      This works like expected. Once I add the `hyperref` package, the automatic line breaking seems to be disabled, e.g.               \documentclass{scrartcl}      \usepackage[normalem]{ulem}     \usepackage{hyperref}     \begin{document}         \addtokomafont{section}{\uline}         \section{A section title so long that it causes a line break. A section title so long that it causes a line break.}     \end{document}      yields an overfull line for the section title. If a remove the `\addtokomafont{section}{\uline}` the line breaking is back again, but of course there is no underlining any more ... How can I achieve underlined section titles with automatic line breaking enabled? NOTE: I know I shouldn't use underlining for section titles, but this was not my decision. NOTE 2: For those who complain about using underlining at all: The issue also occurs if I use strikeout via `\sout` instead of `\uline`, which is definitely useful during the editing process of a document.


title: How to draw a scatter chart with multiple columns of metadata+labels?

text: I want to print a scatter chart and color the nodes according to a column in the data file. The problem is, `point meta` already is used for other data. This is the class of the point, either ONE or TWO, it is used for the mark. Also, the nodes are labeled. So how to do this? Working example:               \input{include_filename} % defines \outputfile, written by batchjob     \documentclass[border=5pt,convert]{standalone}     \usepackage[english]{babel}     \usepackage{pgfplots}     \usepgfplotslibrary{units}     \pgfplotsset{compat=1.10}     \begin{document}%         \setlength{\textwidth}{500pt}%         \setlength{\linewidth}{500pt}%     \begin{tikzpicture}     \begin{axis}[]     \addplot+[         scatter, only marks,         point meta=explicit symbolic,         scatter/classes={             ONE={mark=*,mark color=\myerror},%             <-- here is the problem             TWO={mark=triangle*,mark color=\myerror}},%         nodes near coords*={\pgfmathprintnumber[int detect]{\myindex}},         visualization depends on={\thisrow{error} \as \myerror},         visualization depends on={\thisrow{index} \as \myindex},     ]         table[meta=partition]{\outputfile};          \end{axis}     \end{tikzpicture}     \end{document}      ![Scatter chart](http://i.stack.imgur.com/dIpst.png) The datafile looks like this:               x   y   error   partition   index     -86 -27 0   ONE 3      `error` might be quite a large negative number. Like -35547923 e.g.


title: Contextual Alternatives in LuaLaTeX

text: I am creating a blackletter font and would like to use it with LuaLaTeX, which works fine for nearly everything so far, except for using contextual alternative glyphs (in this case, r→ꝛ after round letters). Ousia reports that as a bug for `fontspec`, and gets the answer that it seems to be a bug in `luaotfload`. Is there a workaround or bugfix somewhere out there?


title: Depicting and open region in tikz/pgfplots

text: The following code, depicts a closed 2D region in a plane.   I would like make the region appear to have an opening in the silhouette near the bottom of the region, but I'm not sure of a way to do this. Does anyone have any suggestions?               \documentclass[a4paper]{article}          \usepackage[english]{babel}     \usepackage[utf8x]{inputenc}     \usepackage{amsmath}     \usepackage{graphicx}     \usepackage[colorinlistoftodos]{todonotes}     \usepackage{pgfplots}     \usetikzlibrary{decorations.markings,arrows, calc, patterns}     \usepgfplotslibrary{patchplots}     \begin{document}          \definecolor{tufte1}{rgb}{0.7,0.7,0.55}     \begin{tikzpicture}          \draw [-stealth] (-1,1.75) -- (6,1.75) node [above left]  {$u$};     \draw [-stealth] (0,-.25) -- (0,6) node [below right] {};          \node [below right,darkgray] at (+1,+1) {$L(u)$};     \node [above right,darkgray] at (+3.75,+3.75) {$U(u)$};          \begin{axis}[     smooth,     stack plots=y,     area style,     enlarge x limits=false,     hide axis]     \addplot[color=white, draw=none]     coordinates     {(0,.85) (.75,.5) (1.75,.35) (2.25,.25) (3,0) (5,0)}     \closedcycle;     \addplot[opacity=0.6,fill=tufte1,         draw=black]     coordinates     {(0,1) (1,.7) (2,1.5) (3,.5) (4,.15) (5,0)}     \closedcycle;     \end{axis}          \begin{axis}[     smooth,     stack plots=y,     enlarge x limits=false,     hide axis]     \addplot[thick]     coordinates{     (0,.85) (.75,.5) (1.75,.35) (2.25,.25) (3,0) (5,0)     };     \addplot[thick]      coordinates{     (0,1) (1,.7) (2,1.5) (3,.5) (4,.15) (5,0)     };     \end{axis}     \end{tikzpicture}          \begin{tikzpicture}      \begin{axis}[smooth,colormap/greenyellow,hide axis]      \addplot[point meta=x,ultra thick]     coordinates{     (0,1) (1,.7) (2,1.5) (3,.5) (4,.15) (5,0)     };     \end{axis}      \end{tikzpicture}     \end{document}


title: \usepackage[Glenn]{fncychap} and missing numbering

text: I created my thesis using `\usepackage[Glenn]{fncychap}` for chapters. Sadly not all chapters of the parts are numbered. It's quite odd that in part I, chapters 1-2 are numbered but 4-5 are not. In part two and three no chapter is numbered. Does anybody know how this could happen? I'm new to tex and actually used the settings of my friend's thesis, but he himself got them from sb else, so he can be of no assistance to me. In case other infos are needed, please let me know but be specific about what you need - I'm still learning :) Thank you for your help!!


title: MiKTeX 2.9 portable -- Unavailable to complete the update

text: I have received several errors with MiKTeX 2.9, being portable or standard install, in which some files related to configuration, does not work well. In my laptop (Win XP, spanish), the user's configuration directory, has an accented character. Example: ..\djnavas\Configuración local\Datos de programa\MiXTeX\ and the standard install created a directory with the name changed rewriting the accented character, like in "Configuraci%A5n local" (not necessarily equal as in my machine). In my office, I use portable MiKTeX from an USB. The program works, but have the difficulty that can't rebuild the formats after pressing the button "Update Formats". The error report I copied, is: > MiKTeX Problem Report Message: Windows API error 5: Acceso denegado. > > Data: Source: Libraries\MiKTeX\Core\win\winProcess.cpp Line: 810 Acceso denegado means, "access denied". This problem happened after an update of packages from a mirror, through the web. I hope to read some ideas of what to do.


title: Create bibliography categories and headings based on a list

text: I would like to be able to specify a list that will create categories and add entries to them. I am using pgffor for specifying the category name and the heading title in a convenient way. The categories I am using in this example is arbitrary, but the use of a field value and categories in general is not. ## MWE               \documentclass{article}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[defernumbers=true,sorting=ydnt,doi=false,eprint=false,isbn=false]{biblatex}     \renewcommand*{\bibfont}{\footnotesize}     \usepackage{pgffor}          \xdef\bibcats{}          \newcommand*{\addcat}[2]{%       \DeclareBibliographyCategory{#1}%       \defbibheading{#1}{\subsection*{#2}}%     }          \foreach \catg/\head in {phdthesis/PhD. Thesis,article/Articles}{%       \edef\tmp{\noexpand\addcat{\catg}{\head}}       \tmp       \listxadd{\bibcats}{\catg}     }          \addbibresource{biblatex-examples.bib}          \AtDataInput{%       \ifboolexpr{%         not test {\iffieldundef{type}}         and         test {\xifinlist{\thefield{type}}{\bibcats}}       }         {\addtocategory{\strfield{type}}{\strfield{entrykey}}}%         {\ifboolexpr{%             test {\ifnumgreater{\thefield{year}}{2000}}             and             test {\xifinlist{\thefield{entrytype}}{\bibcats}}           }%           {\addtocategory{\strfield{entrytype}}{\strfield{entrykey}}}%           {}%         }%     }          \begin{document}          \nocite{*}          \printbibheading     \bibbycategory          \end{document}      ## Result The above works except for setting the headings and throws the error `Package biblatex Error: Heading <phdthesis/article> could not be found.` resulting in: ![foreach loop result](http://i.stack.imgur.com/VCjar.png) ## Desired Result The result I hope to achieve works by replacing the foreach loop with               \addcat{phdthesis}{PhD. Thesis}     \addcat{article}{Articles}     \forcsvlist{\listxadd\bibcats}{phdthesis,article}      giving ![no foreach loop](http://i.stack.imgur.com/bzprk.png) ## Questions I would like to have the creation of categories depend on a list. Given that the non-foreach loop method works, I suspect the problem mainly comes from expansion problems.   * How do I create categories and corresponding headings based on lists?   * Why does the way I have tried to deal with expansion not work?


title: How to direct all sub-captions of the subfigures in a central caption

text: Is there a way to direct all the \caption{}'s found within multiple nested subfigure environments within a central \begin{figure} environment given as               \begin{figure} ...     \begin{subfigure}...\caption{}...\end{subfigure}\\     \begin{subfigure}...\caption{}...\end{subfigure}     \caption{}...     <---------------direct all sub-captions here     \end{figure}      such that all the subfig captions go in the last caption belonging to the figure (as marked above) where they are labelled appropriately.


title: Difference between 2D and 3D graphics packages

text: I read that TikZ, PSTricks and MetaPost are 2D vector graphics packages while Asymptote is considered 3D. However I also know that you can specify 3D coordinates in say TikZ so that drawing a 3D diagram in TikZ is not merely drawing its projection onto 2D. Given these considerations, what really is meant by 2D or 3D graphics and what is the difference between them?


title: having bracket in front of an item

text: I want to have an enumerate item which is surrounded by brackets. Something like this   1. [Initialization] but surrounding text with [ and ] makes it center aligned.


title: Change arrow head of \xrightarrow[]{}

text: I am using `\xrightarrow{}` in many places in my document. I want to change the tip to look like the one that gets produced by `-latex`. I am trying to get a similar tip for the `\xrightarrow{}` macro.


title: Pale text in PDF viewer

text: I have some problems with output text color in Acrobat Reader. I have to send my work to other people and I can't change their viewers. Text looks like (in Russian): ![enter image description here](http://i.stack.imgur.com/ic8Gv.jpg) I'm using MikTeX 2.9 and `pdflatex` for generating output files. Does anybody know, how to change display settings (may be I have to change font or anything else)?


title: Vowel Harmony and Reference Numbers

text: I am preparing a document in Turkish which is an agglutinative language with two dimensional vowel harmony. This means that there are a lot of suffixes and they change form depending on how the word they are attached to sounds. Automatic reference numbers are simply incompatible with this aspect of Turkish. Here is a simple example. Suppose I want to say something like "According to theorem 3.1..." which translates to "Teorem 3.1'e göre..." in Turkish. The code to get this ouptut is obviously               Teorem \ref{theorem_tag}'e göre...       However If the numbering changes and, say, the number becomes 3.6 then the output becomes "Teorem 3.6'e göre..." which is false. It should be "Teorem 3.6'ya göre..." due to vowel harmony and some other mechanism. Is it possible to implement a command `\ref_suffix{theorem_tag}{'a}` which outputs the correct form of the suffix? Vowel harmony, devoicing and other suffix changing rules are algorithmically very simple and there are no irregularities, at least in the case of numbers. Edit: Following egreg's request, here are the rules of vowel harmony in Turkish. Notation: Let X and Y be sets of vowels. A rule of the form X -> Y means if the vowel of a syllable is from X then the vowel of the following syllable should be from Y. The rules are {a,ı,o,u} -> {a,ı,o,u}, {a,e,ı,i} -> {a,e,ı,i}, {o,ö,u,ü} -> {a,e,u,ü}.


title: Font color in XeLaTeX tables

text: I defined the font and color of my text in the document preamble with the commands               \setmainfont{ConduMoveReg.otf}     \setmathfont{ConduMoveReg.otf}     \definecolor{darkblue}{cmyk}{1.00, 0.50, 0.00, 0.40}     \color{darkblue}      All my text, tables, and equations have the custom font I want, but only the normal text and equations are dark blue. My table's font and lines still black. Even if I change the color for red, for example, the table remains black. How can I fix it?


title: Pushing references to the bottom of the page

text: I'm new to LaTeX and I have a two fold question, but first, this is the header that I'm using:               \documentclass[aps,pre,preprint]{revtex4}     \usepackage{graphicx,amssymb,multirow,amsmath}     \usepackage{setspace}     \bibliographystyle{apsrev}     \newcommand{\mb}{\mathbf}     \newcommand{\mc}{\mathcal}     \newcommand{\eps}{\varepsilon}     \newcommand{\pd}[2]{\frac{\partial#1}{\partial#2}}     \newcommand{\comment}[1]{}      Now, I have a couple of figures in my paper, and for convenience, I just placed all of the figures at the bottom. After the figures, I placed a `\pagebreak`, and then I placed my `\bibliography`. However, for some reason, the bibliography is coming before a certain figure. Furthermore, there's this partial line above the bibliography. Is it possible to: 1) remove this line, and 2) place the bibliography on the last page, separated from everything else by a `\pagebreak`?


title: How listing and verbatim do to escape special character?

text: I use one macro to display text using `texttt` style. For the moment this macro is very basic. For example, if I want to use the character `_`, its catcode must be changed. Is there a clever way to escape all the special characters like `listing` and `verbatim` do ? Can `detokenize` be helpfull ?               % Sources :      %   * http://forum.mathematex.net/latex-f6/forcer-le-retour-a-la-ligne-dans-texttt-t13246.html#p127511     %   * http://tex.stackexchange.com/questions/33465/changing-the-catcode-of-in-one-command          \documentclass{article}         \makeatletter         \newcommand\breakabletexttt[1]{%             \begingroup\ttfamily             \scantokens{\catcode`\_12\makeatletter\breakable@texttt#1\@nil}%             \endgroup%         }         \def\@gobble@fi#1\fi{\fi#1}         \def\breakable@texttt#1#2\@nil{%             #1\hspace{0pt plus 0.1pt minus 0.1pt}%             \ifx\relax#2\relax             \else                 \@gobble@fi\breakable@texttt#2\@nil             \fi         }         \makeatother               \begin{document}          \breakabletexttt{rangerangerangerange_rangerangerange_rangerangerangerangerangerangerangerangerangerangerangerangerangerangerangerangerangerangerangerangerangerangerangerangerangerangerangerangerangerangerangerangerangerangerangerangerangerangerangerangerange}          \end{document}


title: Displaying only the starting page of a page range in bibliographies

text: I'm battling with this for couple of hours now... My supervisor asked me to generate the bibliography in a certain style, for articles I need to do: > Author 1; Author 2, _Journal name_ , **volume** , page, (year) Where the volume, page and year are number (page is only the starting page of the article) For chapters I need: > Author 1; Autoher 2, In _Book name_ , page editors: Editor 1; Editor2; > (publisher, city, year). Again, year is a number and page is the staring page Finally, books follow the same logic > Editor 1; Editor 2, _Book name_ , (publisher, city, year). I tried to do this through `makebst` but it insist on using page range. I tried to search for a `bst` files online but all I found was list without examples. Where can I find a list with examples or a generator for `bst` files? I also considered switching to `biblatex` but couldn't find any clear notion wither or not `biblatex` provides control over citation style.


title: How to compile pseudocode into pdf without margins?

text: I want to compile a pseudocode for an algorithm into a separate pdf and then include it into my main document as a figure. However, the compiled pseudocode gets compiled into a pdf with margins and I have not been able to crop it (other than manually) to fit into a tighter box. I used `pdfcrop` to try to get rid of the white space, but it only removes white space at the top, left, and right, but not the bottom. I would like to be able to compile it so that it has no margins and not to have to do it manually every time I change a comma in the pseudocode.   Here is an example:               \documentclass[10pt]{article}     \usepackage{algorithm}     \usepackage{algorithmic}     \begin{document}       \begin{algorithm}[h!]         \begin{algorithmic}         \caption{Precomputing densities}         \label{alg:densities}           \FOR{$i = 1 \to n$}             \STATE $\mathrm{sums}[i][i] \gets 0$           \ENDFOR         \end{algorithmic}       \end{algorithm}     \end{document}      Any advice?


title: Setting axis line offset?

text: I was wondering if it was possible to easily detach the axis lines from each other. From this piece of code,                   \begin{tikzpicture}         \begin{axis}[%         xmin=-6.3, xmax=6.3,         ymin=-2.3, ymax=2.3,         ]         \addplot {2*sin(deg(x))};         \end{axis}         \end{tikzpicture}      how could I achieve to get something like the bottom left plot of this example? ![enter image description here](http://i.stack.imgur.com/h9xXu.png) I would like to remove the line between the first tick of the x axis and the y axis line: is there a way to independently offset the axes and/or "set off" the corner where axes cross each other?


title: Few questions about LaTeX as a layman

text: I have never used LaTeX before and do not know how to use it either. But, I know cursorily that it does similar work of writing mathematical expressions as the Mathtype in MS-Word does. My questions are:   1. How is LaTeX useful in general, and also it's advantage over Mathtype?   2. In which field/area does learning LaTex benefits substantially?    3. How much time would it take me to learn LaTeX for basic use?


title: Using UTF8 inside \path from the url package

text: Whereas there are certain rules for how a URL is to be formed (where non ascii letters are not really allowed). How about `\path`? I happend to try `\path{æøå}`, saved in `latin1` this gives the expected result, whereas in `utf8` it gives six letters.               \documentclass[a4paper]{article}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     %\usepackage[latin1]{inputenc} % remember to convert file into latin1     \usepackage{url}     \begin{document}     \path{æåø}          \texttt{æåø}     \end{document}


title: Change what kile highlights/considers as math

text: Kile automatically highlights what is inside a math environment. Now, if I use an environment that I defined and that includes opening a math environment, this is not recognized by kile. Is it possible to add this newly defined environment to the list of environments that kile recognizes as math?


title: Set the width of every columns of a table in ConTeXt

text: Sometimes, I need such a table whose column widths should be equal with each other. Here is an example:               Name    Email     John    john1989@gmail.com     Bill    bill1990@outlook.com     Tim     tim1995@hotmail.com      The Name Column should flushed right and the Email Column should be flushed left. Of course, each column has the same width. I think this requirement can be achieved by the `\starttable` and `\stoptable`, but how to combine the `l` or `r` with the required width?


title: Theorem without numbering

text: Is it possible to have single theorems without numbering? I would like to be able to switch them off individually with asterisk-* or have a nono-theorem environment.               \newtheorem{theorem}{Theorem}     \newtheorem{nono-theorem}{Theorem}[]


title: highlighting diagonal of a square matrix

text: I have a 3x3 `eqnarray`. Is there a way to highlight the diagonal with background color, perhaps using tikz? I was using tikz ellipse to highlight equation terms, though stretching the ellipse to the whole diagonal makes it too thin at ends; I also don't know how to rotate it without trial-and-error angle value.


title: How to implement a jurisdiction biblatex entry type?

text: IANAL. But I want to cite one particular court decision. It's a German court and the complete code (or whatever you call that) for that verdict is: "BVerfG · Urteil vom 15. Dezember 1983 · Az. 1 BvR 209/83, 1 BvR 440/83, 1 BvR 420/83, 1 BvR 362/83, 1 BvR 269/83, 1 BvR 484/83 (Volkszählungsurteil)" Needless to say that I have no idea what all these reference numbers mean. I was hoping that someone already had implemented the `jurisdiction` entry type that `biblatex` only provides as "unsupported". Yeah, Plan B is to just paste that stuff in `misc` and stop caring. But, you know ...


title: Consistent baseline position in twocolumn

text: In twocolumn mode, the baseline of the first line in a column seems to be positioned a minimum of ~10pt below the top of the column, regardless of current font size. If the font size is sufficiently large that a character on the first line is more than 10pt high, the text is shifted down just enough that the text does not overlap the top of the column. For example:               \documentclass[twocolumn]{article}     \begin{document}     Text \newpage \tiny Text \newpage     \normalsize Text \newpage \Huge Text \newpage     \Huge no ascen-ers \newpage \Huge Ascenders     \end{document}         * On page 1, the normal and tiny text share the same baseline, ~10pt below the top of the column   * On page 2, the Huge text is taller than 10pt, so the baseline is shifted down relative to the normal text   * On page 3, both columns have Huge text, but since the first column has no ascenders in the first line, the baseline does not match that of the second column. Is it possible to start a column a set distance (for example, `\baselineskip`) beneath the top of the column, or otherwise avoid the position of the baseline being dependent on the size of characters that are in the first line of a column? EDIT: Is it possible to accomplish this (getting the first-line baselines at the same level) automatically?


title: Help on decorations: how to draw a spiral coiled tube in TikZ

text: Hi everybody I was trying to draw a spiral coiled tube ![enter image description here](http://i.stack.imgur.com/JJBXj.jpg) with TikZ decoration library. This is what i got so far:               \documentclass{standalone}     \usepackage{tikz}     \usetikzlibrary{decorations}               \pgfdeclaredecoration{example}{initial} {     \state{initial}[width=5mm, next state=mynext] {     %         \pgfpathmoveto{\pgfpoint{0cm   }{1cm   }}         \pgfpathquadraticcurveto{\pgfpoint{.6cm   }{.5cm   }}{\pgfpoint{0cm   }{0cm   }}         \pgfpathquadraticcurveto{\pgfpoint{.25cm   }{.1cm   }}{\pgfpoint{.5cm   }{0cm   }}         \pgfpathquadraticcurveto{\pgfpoint{1.2cm   }{.5cm   }}{\pgfpoint{.5cm   }{1cm   }}         \pgfpathquadraticcurveto{\pgfpoint{.25cm   }{.9cm   }}{\pgfpoint{0cm}{1cm}}         \pgfpathmoveto{\pgfpoint{.5cm   }{0cm   }}         }      \state{mynext}[width=5mm]{         \pgfpathquadraticcurveto{\pgfpoint{.25cm   }{.1cm   }}{\pgfpoint{.5cm   }{0cm   }}\pgfpathquadraticcurveto{\pgfpoint{1.2cm   }{.5cm   }}{\pgfpoint{.5cm   }{1cm   }}         \pgfpathquadraticcurveto{\pgfpoint{.25cm   }{.9cm   }}{\pgfpoint{0cm}{1cm}}         \pgfpathmoveto{\pgfpoint{.5cm   }{0cm   }}     }     \state{final} {         \pgfpathlineto{\pgfpointdecoratedpathlast}         }     }               \begin{document}          \tikz[decoration=example] {         \draw [decorate]    (0,0) -- (3,0);          \draw [blue!20!,decorate] (0,0) to [out=45,in=135] (3,0);         \draw [red,decorate] (0,-5) to [out=30,in=100] (3,-5);     }     \end{document}      ![enter image description here](http://i.stack.imgur.com/mKCM0.png) This results in a good one for straight lines, but with some bending there is a gap between the segments. So this is what i expected since i'am not able to hand over two coordinates to the next repetition. I tried to compute the end point (upper corner) by storing `\pgfdecoratedangle` and transforming it back to the last segments angel but `\pgfdecoratedangle` seems to be empty. So how can i connect those segments properly and/or how could one draw such a tube ? **Update:** another approach with an existing decorations:               \documentclass[border=1mm]{standalone}     % based on http://tex.stackexchange.com/questions/31707/how-to-raise-a-generic-curve-problem-with-pgfdeclaredecoration     \usepackage{tikz}     \usetikzlibrary{decorations.markings}     \usetikzlibrary{decorations.pathmorphing}          \tikzset{forcedist/.style={decorate, decoration={markings,     mark=between positions 0 and 1 step 0.0999 with {\draw[thick] (0,-#1) to[bend left] (0,#1); }}}}          \begin{document}           \begin{tikzpicture}       \draw [double distance = 1cm,thick, double=red, decoration=snake]  (0,0) .. controls++(1,1) and (6,-3).. (7,0);       % those lines should be wavy       \draw [forcedist=5mm]  (0,0) .. controls++(1,1) and (6,-3).. (7,0);       \draw [double distance = 5mm,thick, double=red]  (0,3) --++(8,0);       \draw [forcedist=2.5mm ]  (0,3)--++(8,0);       \end{tikzpicture}          \end{document}      So this looks quite encouraging, although i'm not able to make those douled lines wavy so that there is a impression of a thicker spiral. The latter results in ![enter image description here](http://i.stack.imgur.com/tYF4b.png)


title: How to turn on/off page numbering when merging PDF files

text: I am trying to merge separate PDF files, following this advice.               \documentclass{article}     \usepackage{pdfpages}     \begin{document}     \includepdfmerge{file1.pdf,-}     \includepdfmerge{file2.pdf,1-3}     \end{document}      Now I would like to keep the page numbering as it is in file 1. File 2 has no page numbering so I would manually set the counter and turn on page numbering. I tried               \setcounter{page}{25}      \pagenumbering{arabic}      but it didn't help: the page numbering didn't appear. How can I turn on/off page numbering when merging separate PDF files? * * * Sad news: the url-s break down too.


title: Writing equations within dgroup environment

text: I am having a problem with writing equations using `dmath` and `dgroup` in my article. the packages I am using are               \documentclass[a4paper 12pt] {article}     \usepackage{breqn}      The codes I am writing are -               \begin{dgroup}     \begin{dmath}     v_f = k_f C_O(0,t) = \frac{i_c}{nFA}     \end{dmath}     \begin{dmath}     v_b = k_b C_R(0,t) = \frac{i_a}{nFA}     \end{dmath}     \label{eq14}     \end{dgroup}      The problem is that it has two equal signs in the same line of equation. with this settings I am getting the results okay but after the two lines of equations, LaTeX puts a big gap before I start my text again. When I use `equation` in place of `dmath`, the big space after the two lines of equations are gone but the equations are not at two lines any more. It puts the `= \frac{i_c}{nFA}` part into the next line, which I don't want. Can anyone please help me with a solution?


title: Choose a bibstyle

text: Which bibstyle would be the best for following requirements? (`abbrv` or another one?) I am aware about the possibility of a manual modification at the end, but maybe a bibstyle for this assignment (tex template of a conference) would be available. Requirements:               \item {\bf References:} Must be numbered in the order cited in the manuscript     and indicated in the text by a number in square brackets ({\it e.g.}, [1]).\newline     \newline     The required format for references is:         \begin{itemize}         \item {\bf Papers:}         Author, paper title, {\em journal name (in italics)}, volume and issue         numbers, year, inclusive pages. {\it e.g.}: \smallskip \newline         [1] T.C. Hsia, Simple robust schemes for space control         of robot manipulators, {\it Int. J. of Robotics and Automation}, 9(4),         1994, 167-174.         \item {\bf Books:} Author, {\em title (in italics)} (location of         publisher, publisher, year). {\it e.g.}:\smallskip \newline         [2] M. Kayston and W.R. Fried, {\it Avionic Navigation         Systems} (New York: John Wiley and Sons Inc., 1969).         \item {\bf Chapters in Books:} Chapter Author, Chapter Title, in         Editor (Ed.), {\em title (in italics)}  (location of publisher,         publisher, year) inclusive pages. {\it e.g.}: \smallskip \newline         [3] P.O. Biship, Neurophysiology of binocular vision,         in J. Housman (Ed.) {\em Handbook of physiology}, 4 (New York:         Springer-Verlag, 1970) 342-366.         \item {\bf Proceedings Papers:} Author, paper title, {\em proceedings         title (in italics)}, City, Country, year, inclusive pages. {\it e.g.}:         \smallskip \newline         [4] W.J. Book, Modelling design and control of         flexible manipulator arms: A tutorial review, {\it Proc. 29th IEEE Conf. on         Decision and Control}, San Francisco, USA, 1990, 500-506.         \end{itemize}


title: hide section numbering but continue adding-up

text: When I hide a section with the asterisk it doesn't show the number in the heading and the section doesn't show up in the TOC. How to hide a section but have the counter beeing added-up correctly so that `\thesection` gives the correct number of the section?


title: How can I produce the reflection of a pstricks image in pstricks?

text: I defined some small pstricks makro:               \begin{pspicture}(-5,-5)(5,5)         \newcommand{\leftwall}{%         \psline(-4,-4)(-4,4)         \multips(-4,-3.5)(0,0.5){14}{\psline(0,0)(-1,1)}         }         \leftwall     \end{pspicture}      And now I want the output of `\leftwall` reflected, to produce something like `\rightwall`. In this specific situation, I could just change the signs of the x coordinates, but this is ugly. How can I do this in general? I'm looking for a command like `\psrotate` from the pstricks-add package where I can specify two points that define a line along which I can reflect my `\leftwall`.


title: How to modify a .sty file?

text: I am trying to modify the `fontawesome.sty` file. I just include the command in the style file and it works but without showing the Skype icon just showing an empty box.               \expandafter\def\csname faicon@icon-skype\endcsname         {\symbol{"F17E}}  \def\faSkype             {{\FA\csname faicon@icon-skype\endcsname}}


In Mathematica, C# linq, or other languages, we can use auxiliary functions to produce list of certain pattern. For example:   1. In Mathematica, we can use `Table[]` or `Range[]` to produce a list of numbers in the specified pattern.   2. In C#, we can also use `Range` to produce a list of consecutive integers. I need this kind of function also in PGF/Tikz to be consumed by `\foreach`. Are there list building macros in PGF/Tikz?


title: Can one define a '\superexpandafter{n}' that would expand to 2^n-1 '\expandafter's?'

text: This question was inspired by comment banter in this question. See title.


title: Replacement for \unexpanded without eTeX extension

text: As comment on Can the extended register pool be used for \newinsert?, there is a reference to Dealing with tons of floats. It is interesting but uses `\unexpanded`:               \edef\@freelist{%     \unexpanded\expandafter{\@freelist\@elt}\expandafter\noexpand\ExtraFloatCommand}%      How can this be replaced by something like `\expandafter`, `\noexpand`, `\toks@`, which does not require the eTeX extension? (With eTeX probably `\etex@unexpanded` from the `etexcmds` package would be better than `\unexpanded`.)


title: \includepdf changes left and right pages

text: I've followed advice at "How to start new chapters on the right hand side" and found that including as title page, one PDF page is braking left&right orientation:               \documentclass[pdftex,a4paper,12pt,twoside,openright]{report}     \usepackage[pdftex,a4paper]{geometry}     \usepackage{pdfpages}     \usepackage{lipsum}     \begin{document}     \includepdf{onetitlepage.pdf}   % <---- problem     \begin{abstract}     Abstract \lipsum[1]     \end{abstract}     \tableofcontents     \chapter{CH1}     \lipsum[2-6]     \chapter{CH2}     \lipsum[7-8]     \chapter{CH3}     \lipsum[9]     \end{document}      After including one page PDF, I get same document, but with one more page on beginning. It's all right except one thing: right pages are now left pages. My current workaround is to include additional empty page, like that:               \includepdf{onetitlepage.pdf}     \includepdf{oneemptypage.pdf}   % <---- current solution      Is is LaTeX-y way? Can it be done in more elegant, LaTeX-y way? What is the reason why including `onepage.pdf` breaks left&right hand side, and how to prevent it when writing documents?


title: How to get the tikz/font pgfkey value and pass is to \pgfnode command

text: Let's say that I'm writing a decoration where I use the `\pgfnode` command in it. It works well but if I change the `pgfkey` TikZ/font to any dimension, it is not passed to the nodes in the decoration. How can I avoid it?


title: How to set-up LuaTeX, Microtype, with Minion Pro, Myriad Pro

text: Since recently I am using LuaLaTeX with the most recent beta version of Microtype, along with the fonts Minion Pro and Myriad Pro. In the manual of Microtype it says:                   Currently, this package provides protrusion settings for [...] Adobe Garamond and Minion, [...] as well as some generic settings for unknown fonts     (cf. table 3 on page 21)      Currently, I just include the fonts like this (with some other font definitions for headings etc. settings left out here):               \defaultfontfeatures{Ligatures=TeX, Scale=MatchLowercase}          \setmainfont[SmallCapsFeatures={LetterSpace=6}, Numbers={Proportional,OldStyle}]{Minion Pro}     \setsansfont[LetterSpace=3, Numbers={Proportional,OldStyle}]{Myriad Pro}      But this way I still get the following message from `Microtype`:               Package microtype Warning: Loading generic settings for font family `MinionPro'      How can I load the correct settings? Also, is there a way to avoid all these warnings I get for fonts that are not supported, and Microtype just loads the generic settings?


title: Render rfc4180 compilant CSV as table

text: Is there a LaTeX package, which would import data from `csv` and honour the quotation escaping? To be exact I mean one using the rules 1. - 7. of http://tools.ietf.org/html/rfc4180#section-2 Neither `pgfplotstable` nor `simplecsv` seem to work - they both incorrectly parse the quoted comma as field separator.               column1, column2     value,"A quoted, value"     value2,A value     value3,"a ""value"""      Line 1 (of data) results in a `pgfplotstable` error: `Table 'data.csv' appears to have too many column`. Header, lines 2 and 3 render fine. Desired output is:               column1  |  column2     ---------+---------------------     value    |  A quoted, value     value2   |  A value     value3   |  a "value"      The only solution I found is manually enclosing the fields with `{}` brackets, but it's obviously a hassle. **EDIT:** in the original file only the fields that contain commas and quotes are quoted **EDIT2:** I understand it might be complicated to change the quotations to proper '' `` pairs; I'm not interested in this.


title: Replace ocgtools' ocgpicture with ocgx

text: Since ogctools isn't working for me with TexLive2013, I try to rebuild its command `\ocgpicture` which shows a picture and by clicking on this it is show in full size. By clicking on the big picture it should hide again. This is now my problem. The active region which reacts on the click is on every ocg, so that it hides only the last ocg.               \documentclass{beamer}          \usepackage{ocgx}     \usepackage{tikz}     \usetikzlibrary{ocgx}     \usepackage{graphicx}          \newcommand{\ocgpicture}[3][]{     \begin{tikzpicture}[remember picture, overlay]     \begin{scope}[ocg={ref=#3,status=invisible, name=#3}]     \node at (current page)        {\hideocg{#3}{\includegraphics[height=\paperheight]{#2}}};       \end{scope}      \end{tikzpicture}     \showocg{#3}{\includegraphics[#1]{#2}}     }          \begin{document}          \frame{     \ocgpicture[width=2cm]{img1}{img1}     \ocgpicture[width=2cm]{img2}{img2}     \ocgpicture[width=2cm]{img3}{img3}     }          \end{document}


title: How to create step by step annotated programming tutorial  in LaTeX?

text: (question inspired by How to create a crossword puzzle in LaTeX? and provided solutions) How to make in most comfortable way in LaTeX (I use pdfLaTeX, but I am open for LuaTeX solutions) annotated, step by step, programming tutorials? Preferably from annotated sourcecode? Or in other way, by less effort than typing each slide by slide. I means questions and answers tutorial in form of presentation (I don't know if `beamer` is the only solution for presentations, but I've heard it's popular one). Here is an example how such presentation would look like:               *-------------------------------------------*     |      How to implement Main function?      |     |                                           |     |                                           |     | (1)?                                      |     |                                           |     |                                           |     |                                           |     |                                           |     |    (2)?                                   |     | (1)                                       |     |                                           |     | (1) ... ?                                 |     | (2) ... ?                                 |     *-------------------------------------------*          *-------------------------------------------*     |              Main function                |     |                                           |     |                                           |     | int main(){ (1)                           |     |                                           |     |                                           |     |                                           |     |                                           |     |    return 0; (2)                          |     | } (1)                                     |     |                                           |     | (1) ...                                   |     | (2) ...                                   |     *-------------------------------------------*          *-------------------------------------------*     |        How to perform Computation?        |     |                                           |     |                                           |     | int main(){                               |     |    (3)?                                   |     |                                           |     |    (4)?                                   |     |                                           |     |    return 0;                              |     | }                                         |     |                                           |     | (3) ...?                                  |     | (4) ...?                                  |     *-------------------------------------------*          *-------------------------------------------*     |              Computation                  |     |                                           |     |                                           |     | int main(){                               |     |    long a,b,c; (3)                        |     |                                           |     |    c = a * b; (4)                         |     |                                           |     |    return 0;                              |     | }                                         |     |                                           |     | (3) ...                                   |     | (4) ...                                   |     *-------------------------------------------*          *-------------------------------------------*     |            Input & Output  ?              |     |                                           |     | (5) ?                                     |     | int main(){                               |     |    long a,b,c;                            |     |    (6) ?                                  |     |    c = a * b;                             |     |    (6) ?                                  |     |    return 0;                              |     | }                                         |     |                                           |     | (5) ...?                                  |     | (6) ...?                                  |     *-------------------------------------------*          *-------------------------------------------*     |            Input & Output                 |     |                                           |     | #include <cstdio> (5)                     |     | int main(){                               |     |    long a,b,c;                            |     |    scanf("%ld%ld", &a, &b); (6)           |     |    c = a * b;                             |     |    printf("%ld\n", c); (6)                |     |    return 0;                              |     | }                                         |     |                                           |     | (5) ...                                   |     | (6) ...                                   |     *-------------------------------------------*


title: Nested parameters lost when generating new macros from package options

text: I've created a package which I would like to take in options and turn these into new macros (one new macro for each option). I also want these new macros to produce new macros in turn. For example, calling my package thus:               \usepackage[foo]{mypackage}      Should effectively run the following:               \newcommand{\foo}[1]{%         \def\fooMagic{some handling of #1}     }      My attempt thus far is below - in an example form.               \ProvidesPackage{mypackage}          \RequirePackage{xkeyval}          % Create a macro to create the macro that will create the macros:     \newcommand{\@mypackage@addnewmacro}[1]{%         \expandafter\newcommand\expandafter{\csname #1\endcsname}[1]{%             % Point A is here (for explanatory reasons that will become apparent)             \expandafter\def\csname #1Magic\endcsname{some handling of ##1}         }     }          % Interpret (unrecognised) options supplied to the package as new macro names:     \DeclareOptionX*{%         \@mypackage@addnewmacro{\CurrentOption}     }          % Process the options:     \ProcessOptionsX*      Running this:               \documentclass{report}          \usepackage[foo]{mypackage}          \foo{bar}          \begin{document}          \fooMagic          \end{document}      Should have printed:               some handling of bar      But instead it results in an error (in the log):               Undefined control sequence.\fooMagic      If the following is inserted at `Point A`:               \PackageWarning{mypackage}{'#1','##1'}      The log shows that `#1` is empty, printing:               '','bar'      I'm not really sure why this is happening. My guess is that it might be something to do with defining all the options and then processing them afterwards, at which point the original `#1` values have been dropped. Although regardless of the cause, any help to get around/fix this would be much appreciated.


title: Help with book header and footer

text: Why does that not work? And how to fix it?               \begin{document}     \pagestyle{fancy}     \fancyhf{}     \fancyhead[LE,RO]{\textbf{Name}}     \fancyhead[RE,LO]{\textit{\leftmark}}     \fancyfoot[CE,CO]{{\parbox{\textwidth}{\hrulefill\kern-0.6ex\raisebox{-0.5ex}{$\Bigl[$\makebox[\widthof{1.2{\thepage     of \pageref{LastPage}}}][c]{\thepage \hspace{1pt} of \pageref{LastPage}}$\Bigr]$}\kern-0.5ex\hrulefill}}}          \end{document}      It should be a header with my name and the chapter/section. In the footer it should be a nice page-numbering. Could anyone help me please?


title: Sublime Text 2 - backward search

text: I am using Evince 3.6.0 with latexmk and texlive. LaTeXTools states that it should work right of the box with my Setup. The backward search of Evince (ctrl+click) is not working for me although the forward search works like a charm.


title: How to change PI name and footnote in NIH documentclass?

text: I am writing a proposal for a class and I am using `\documentclass{nih}` (http://www.ctan.org/tex-archive/macros/latex/contrib/nih/). However, for the name of the PI, it shows "Donald, Bruce R." by default. How can I change this name to my own? Also, how can I change the text in the footnote? It says "PHS 398/2590 (Rev. 09/04)" on the left and "Continuation Format Page" on the right. I only want the page number and leave out the other stuff. Here is a minimal example:               \documentclass[12pt]{nih}     \usepackage{lipsum}          \begin{document}          \section{Specific Aims}     \lipsum          \end{document}


title: How to automatically optimize the PDF output of TiKZ externalize?

text: I use `pgfplots` with `externalization` for generating plots in my document. For heavy plots the output PDF for a figure can grow to few hundred KB. I used Adobe Acrobat to optimize the PDFs which resulted in a significantly reduced size (from 300 KB to 20 KB). My `tikzpicture`s purely contain plots but no text. First, what kind of information is stored in the original file which makes it huge compared to the optimized version? Second, to optimize the files, one way is to use Ghost script for post- processing the PDF files, however, is there anyway we can get `tikz` to generate smaller files in the first place? Or can we make LaTeX optimizes the PDFs generated by `tikz externalization` without the need for separate post- processing?


title: nocite by selection

text: I want to create a bibliography selecting all items from a large bib file which contain a specific author and were published in a specific year. So far I see the nocite command only with * which is everything or specifying single items by hand but not seen any example with a more general rule. printbibliography seems to take some rules, but first tests show that items will not be sequentially numerated, since it selects them from the full list. I could import the bib file in some GUI tool like Zotero, select there the items I want and export it as new file again, but I would like to have a solution which stays in TeX land and can for example be expanded for automation selecting different years, authors etc.


title: create a self-contained source?

text: Is there a simple way to export a self-contained source for a large LaTeX document? I would like it to export all of the class files, etc as well as the sources that I have written in order to create a self-contained source.


title: Large Square Root Symbols

text: Normally the `\sqrt{x}` symbol automatically scales according to `x`, so that it usually seems to be the right size. But is there any way to manually increase the size of one instance of the `\sqrt` symbol? This issue came up in the following MWE:               \documentclass{article}     \newcommand{\blank}[1]{\hfil\penalty1000\hfilneg\rule[-3pt]{#1}{0.4pt}} % nice blank underscores     \begin{document}     Fill in the blank for the following equation:     \[ 3 = \sqrt{\blank{1cm}} \]     \end{document}


title: How to globally tikzset styles

text: I would like to set a `tikzstyle` from within a `tabular` environment, and use it after the table. Adding the usual `\global` seems to have no effect. The MWE below produces: ![enter image description here](http://i.stack.imgur.com/CPO8Q.png) but I want the last line to be red not blue.               \documentclass{article}           \usepackage{tikz}          \tikzset{MyStyle/.style={}}%          \newcommand*{\MyTikzPicture}{%         \begin{tikzpicture}             \draw [MyStyle] (0,0) -- (2,0);         \end{tikzpicture}     }%          \begin{document}     \MyTikzPicture          \tikzset{MyStyle/.style={ultra thick, blue}}%     \MyTikzPicture          \begin{tabular}{r l}       a & b  \global\tikzset{MyStyle/.style={ultra thick, red}}     \end{tabular}          \MyTikzPicture     \end{document}


title: Avoid pagebreak in landscape

text: I'm using the `lscape` package to landscape certain pages of the document. These pages basically are a section/subsection heading plus a table that must be landscaped. The problem is that entering landscape mode forces a pagrebreak, so I end up having a first blank page with only the section/subsection heading and a second page with the table. This code should illustrate the problem:               \documentclass[12pt,letterpaper]{article}          \usepackage{lscape}          \begin{document}          \section{Foo}          \subsection{Bar}          \begin{landscape}       Landscaped content     \end{landscape}          \end{document}      Is there any way to avoid the pagebreak and have the heading and the content in the same page? Note: I don't want to landscape the section/subsection heading.


title: Renewing the \@ptsize command

text: Why the command below don't change the size of the font? I have copied it from book.cls               \documentclass{book}          \makeatletter     \renewcommand*\@ptsize{2}     \makeatother          \newlength{\hallo}     \settowidth{\hallo}{m}          \begin{document}          Hallo World          \the\hallo          \end{document}      * * * Could I have some problem with this way? For example if I put the `\@newglobalfontsize{}` command after some packgaes in the preamble?               \documentclass{book}          \makeatletter     \DeclareRobustCommand*{\@newglobalfontsize}[1]     {         \let\small\relax         \let\footnotesize\relax         \let\scriptsize\relax         \let\tiny\relax         \let\large\relax         \let\Large\relax         \let\LARGE\relax         \let\huge\relax         \let\Huge\relax         \makeatletter         \input{bk#1.clo}         \makeatother     }     \makeatother          \makeatletter     \@newglobalfontsize{10}     \makeatother          \newlength{\hallo}     \settowidth{\hallo}{m}          \begin{document}          Hallo World          \the\hallo          \end{document}      ## UPDATE To avoid all problems this is the best way for me:               \documentclass{scrreprt}          \makeatletter          \DeclareRobustCommand*{\@newglobalfontsize}[1]{\changefontsizes[\dimexpr#1*1.2\relax]{#1}}          \@newglobalfontsize{8pt}          \makeatother               \begin{document}          test          \end{document}


title: place a minipage on the top of a page

text: I need to place a `minipage` on the **top** of a page. I use the `t` option, but seems not working.               \usepackage{abbrevs}     \usepackage{adjustbox}     \usepackage{floatrow}     \usepackage{graphicx}     \usepackage{latexsym}     \usepackage{paralist}     \usepackage{pgfplots, pgfplotstable}     \usepackage{subfig}     \usepackage{tikz}     \usepackage{times}          \begin{minipage}[t]{0.8\textwidth}           \begin{minipage}[b]{0.4\textwidth}             \centering             \adjustbox{width=0.7\textwidth} {               \begin{tikzpicture}[text centered, nodes = {draw, minimum size = 22mm}]                 \matrix at (0, 0)                         {                           \node {$ 1 $}; & \node {$ 1 $}; \\                           \node {$ *1 $}; & \node {$ *1 $}; \\                         };               \end{tikzpicture}             }             \captionof{figure}{fig 1.}           \end{minipage}%         \hfill           \begin{minipage}[b]{0.46\textwidth}             \centering             \adjustbox{width=1.2\textwidth} {               \begin{tikzpicture}[text centered, nodes = {draw, minimum size = 12mm}]                 \matrix at (0, 0)                         {                           \node {$ 2 $}; & \node {$ \forall $}; \\                           \node {$ 2 $}; & \node {$ 2 $}; \\                         };               \end{tikzpicture}             }             \captionof{figure}{fig 2.}           \end{minipage}         \end{minipage}


title: Min/Max of pgfplots@data@xmin and \pgfkeysvalueof{/pgfplots/xmin}

text: Following example does not work:               \documentclass{standalone}     \usepackage{pgfplots}     \pgfplotsset{compat=1.10}     \begin{document}     \makeatletter     \begin{tikzpicture}       \begin{axis}         \addplot  coordinates {(948e-6,1.61981) (1.5e-3,1.02377) (2e-3,0.769047) (2.5e-3,0.614994) (3e-3,0.503511)};         \node (A) at ({rel axis cs:0.25,0.25}) {\pgfkeysvalueof{/pgfplots/xmin}};         \node (B) at ({rel axis cs:0.75,0.75}) {\pgfplots@data@xmin};         \node (C) at ({rel axis cs:0.5,0.5}) {\pgfmathparse{min(\pgfplots@data@xmin,\pgfkeysvalueof{/pgfplots/xmin})} \pgfmathresult};       \end{axis}     \end{tikzpicture}     \makeatother     \end{document}      Error message:               line 14 error| Package PGF Math Error: Unknown operator `Y' or `Y9' (in 'min(1Y9.48e-4],7.427876e-4)').      if I disable `\node (C)` it works. I do not understand why the return value of `\pgfplots@data@xmin` looks so strange.


title: Calling pdflatex inside C code

text: I am writing C code that writes a `LaTeX` file for me. I then attempt to compile the file using `pdflatex` in a `non-interactive` mode (as in I'm automating some process and don't want to wait for user input on fatal error). The LaTeX file is output at `./data/output_date.tex` and I attempt to compile it using the command               system("./pdflatex --interaction=nonstopmode --output-directory=data ./data/output_date.tex");      However, I get the error message:               This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)     entering extended mode     (./data/output_date.tex     LaTeX2e <2009/09/24>     Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh     yphenation, loaded.     (/usr/share/texmf-texlive/tex/latex/base/article.cls     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     (/usr/share/texmf-texlive/tex/latex/base/size10.clo))     (/usr/share/texmf-texlive/tex/latex/pbox/pbox.sty     (/usr/share/texmf-texlive/tex/latex/tools/calc.sty)     (/usr/share/texmf-texlive/tex/latex/base/ifthen.sty))     (data/output_2013_date.aux))     ! Emergency stop.     <*> ./data/output_date.tex          !  ==> Fatal error occurred, no output PDF file produced!     Transcript written on data/output_date.log.      I can't seem to decipher why exactly I'm getting an emergency stop, especially because when I run the same exact command from the terminal (from the same folder as the `C` executable), the `LaTeX` compiles fine to `pdf`. Is there something special I have to do because I'm calling the compiler as a command from `C` code? EDIT: Here is the text of the corresponding `.log` file. The only thing it seems to say is that `no legal \end found`, which confuses me because I checked the source file to make sure my `\begin` and `\end` match up.               This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) (format=pdflatex 2013.5.23)  15 JUL 2013 09:50     entering extended mode      %&-line parsing enabled.     **./data/output_date.tex     (./data/output_date.tex     LaTeX2e <2009/09/24>     Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh     yphenation, loaded.     (/usr/share/texmf-texlive/tex/latex/base/article.cls     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     (/usr/share/texmf-texlive/tex/latex/base/size10.clo     File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)     )     \c@part=\count79     \c@section=\count80     \c@subsection=\count81     \c@subsubsection=\count82     \c@paragraph=\count83     \c@subparagraph=\count84     \c@figure=\count85     \c@table=\count86     \abovecaptionskip=\skip41     \belowcaptionskip=\skip42     \bibindent=\dimen102     )     (/usr/share/texmf-texlive/tex/latex/pbox/pbox.sty     Package: pbox 2003/04/06 v1.0 Dynamic parboxes          (/usr/share/texmf-texlive/tex/latex/tools/calc.sty     Package: calc 2007/08/22 v4.3 Infix arithmetic (KKT,FJ)     \calc@Acount=\count87     \calc@Bcount=\count88     \calc@Adimen=\dimen103     \calc@Bdimen=\dimen104     \calc@Askip=\skip43     \calc@Bskip=\skip44     LaTeX Info: Redefining \setlength on input line 76.     LaTeX Info: Redefining \addtolength on input line 77.     \calc@Ccount=\count89     \calc@Cskip=\skip45     )     (/usr/share/texmf-texlive/tex/latex/base/ifthen.sty     Package: ifthen 2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)     )     \pb@xlen=\skip46     )     (data/output_date.aux)     \openout1 = `output_date.aux'.          LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 8.     LaTeX Font Info:    ... okay on input line 8.     LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 8.     LaTeX Font Info:    ... okay on input line 8.     LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 8.     LaTeX Font Info:    ... okay on input line 8.     LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 8.     LaTeX Font Info:    ... okay on input line 8.     LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 8.     LaTeX Font Info:    ... okay on input line 8.     LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 8.     LaTeX Font Info:    ... okay on input line 8.     LaTeX Font Info:    External font `cmex10' loaded for size     (Font)              <12> on input line 9.     LaTeX Font Info:    External font `cmex10' loaded for size     (Font)              <8> on input line 9.     LaTeX Font Info:    External font `cmex10' loaded for size     (Font)              <6> on input line 9.     LaTeX Font Info:    External font `cmex10' loaded for size     (Font)              <7> on input line 15.     LaTeX Font Info:    External font `cmex10' loaded for size     (Font)              <5> on input line 15.     )     ! Emergency stop.     <*> ./data/output_date.tex          *** (job aborted, no legal \end found)               Here is how much of TeX's memory you used:      375 strings out of 495061      4422 string characters out of 1182621      56939 words of memory out of 3000000      3619 multiletter control sequences out of 15000+50000      6675 words of font info for 24 fonts, out of 3000000 for 9000      28 hyphenation exceptions out of 8191      23i,14n,19p,304b,189s stack positions out of 5000i,500n,10000p,200000b,50000s     !  ==> Fatal error occurred, no output PDF file produced!


title: Token list with line breaks for writing multiple lines to file

text: I make use of a package (gnuplottex) that writes contents of an environment to a file, using the `\verbatim@start/processline/end` commands (by `\immediate\write\FileHandle{\the\verbatim@line}`). Now I want to modify the package to insert a couple of user-defined lines at the start of every file. I defined a token list to store the lines and two commands to set these header lines:               \newtoks\headerlines     \def\setheaderlines#1{\headerlines{#1}}     \def\addtoheaderlines#1{\headerlines\expandafter{\the\headerlines#1}}      The tokens I then write to the file before the `\verbatim@start`, with `\immediate\write\FileHandle{\the\headerlines}`. This works fine for a single line, but I need to write several lines to the file, so preserve newlines in the token and write them to the files. Right now, this does not happen: everything gets put on a single line. How do I preserve newlines in the token list and write as separate lines to the file? In other words:               \setheaderlines{header line 1     header line 2}      gets written to the file as               header line 1 header line 2`      instead of               header line 1     header line 2


title: How to link an excel document to lyx

text: I want to insert tables into lyx. And I think the best way is to link the excel document where the tables are stored to the lyx file. I have installed gnumeric and inserted the excel as external material to lyx. However, lyx reports can not find the approriate converter. So my question is how to add the converter to lyx. The add converter button in preference is grey.


title: Not aligned column names in booktabs library

text: I'm trying to generate the following table:               \documentclass[PhD,binding=0.6cm]{Thesis}      \usepackage{booktabs}     \begin{document}     \newcommand{\ra}[1]{\renewcommand{\arraystretch}{#1}}          \begin{table*}            \ra{1.3}                     \begin{tabular}{@{}rrrrcrcrc@{}}         \toprule          & \multicolumn{1}{c}{$Signatures$}  & \multicolumn{3}  {c}{$Genes$} & \phantom{abc}& \multicolumn{1}{c}{$Cellular Context$} & \phantom{abc} & \multicolumn{1}{c}{$Organism$}\\               & $UP$ & $DN$ & $Tot$ \\         \midrule                ZEB1 & - & -  & 29 && BC && HUMAN \\         EGFR & -  & - & 487 && CC, Epitelial Cells && HUMAN\\                     \bottomrule       \end{tabular}       \caption{Signatures details}     \end{table*}     \end{document}       Unfortunately the headers seems not to be aligned. In addiction the content seems to be on the right end of each line while I would like to center it.


title: Why the pdf file cannot show the chapter?

text: Today,I typoset a book. My code:               \documentclass[UTF8]{book}     \usepackage{geometry}     \usepackage{times}      \usepackage[colorlinks,linkcolor=blue,anchorcolor=blue,citecolor=red,unicode]{hyperref}      \geometry{left=2cm,right=2cm,top=2.8cm,bottom=2.5cm}          \begin{document}             \tableofcontents        \input{Preface}        \input{Preface to the first edition}        \input{Introduction}        \input{chapter_1}        \input{chapter_2}        \input{chapter_3}        \input{chapter_4}          \end{document}      However,the PDF file show `Preface` twice,not showing the chapter `Preface to the first edition`.So i wonder why and how to revise.


title: Equation numbering: how can I get (1.1), (2.1), (3.2) in the article class?

text: I know how to make them do 1, 2, 3....just need to know 1.1, 1.2, 3.2, 3.3 etc               \begin{align}          \end{align}      This will produce 1, 2, 3 etc, I know this but need the other.


title: Changing the height of a symbol

text: I would like to make a shorter version of `$\sqcup$` to use as a symbol for a Turing machine if possible. The first picture is the height I would like it to be and the second is the default height. ![enter image description here](http://i.stack.imgur.com/IxDzO.png) ![enter image description here](http://i.stack.imgur.com/uEWSw.png)


title: modifying margins for one slide

text: I need help for modifying the margins for only one slide in the `beamer` class In other words, I need a local version of               \setbeamersize{text margin left=<size>,text margin right=<size>}       in here               \documentclass{beamer}     \usetheme{Rochester}     \usepackage{lipsum}          \setbeamersize{text margin left=5pt,text margin right=5pt}          \begin{document}          \begin{frame}     \lipsum[2]     \end{frame}          \end{document}


title: To have ISBN field in Biblatex for Bibliography

text: I want to have ISBN field in my Bibtex. I learned from Andrew that it is best done with Biblatex as a whole. So I want to move from Natbib to Biblatex. I am getting this error to Andrew's code, when I have the file _article.bib_ in the folder: ![enter image description here](http://i.stack.imgur.com/jmVdD.png) **How can you show ISBN field of articles and books in Bibliography?** So mainly               ./article.tex:2: LaTeX Error: Missing \begin{document}.      I have used Typesetting engines XeLaTeX and Pdflatex, but get the same errors.


title: How to merge cells vertically

text: Is it possible to create a table like this one? ![enter image description here](http://i.stack.imgur.com/l96eI.png) The usual structure of tables I use looks like this:               \begin{table}[H]         \begin{adjustbox}{width=\textwidth,center}         % \begin{adjustbox}{center}             \begin{tabular}{lll}                 \hline                 \multicolumn{1}{l}{\head{XXX}} & \multicolumn{1}{l}{\head{XXX}} & \multicolumn{1}{l}{\head{XXX}} \\                 \hline                 \ttfamily xxx & \ttfamily xxx & \ttfamily xxx \\                 \hline             \end{tabular}         \end{adjustbox}         \vspace{ - 05 mm}         \caption{xxx}         \label{tab:xxx}     \end{table}


title: Two sets of labels in chemnum

text: Is it possible to have two sets of labels for numbering compounds throughout the document? Currently I'm using `chemnum` to make labels like **1** , **2** , **3a** and so on. I want to introduce a new sequence of numbers, say, **TS1** , **TS2**... The only idea I have is to reset the counter right before I introduce new labels like this:               \documentclass[b5paper,12pt]{article}     \usepackage{chemnum}     \cmpdinit[init-sub = true]{1,2,3.{a,b}}     \newcommand*{\cmpdTS}[1]{\cmpd[cmpd-prefix=\bfseries{TS},cmpd-space={}]{#1}}     \begin{document}     Here are two compounds: \cmpd{1} and \cmpd{2}.          \cmpdreset     Here are two transition states: \cmpdTS{TS1.a} and \cmpdTS{TS2}.          Which of these two transition states is involved in transformation of \cmpd{1} to \cmpd{2}?          What about \cmpd{3.a}? It is formed from \cmpd{2} via \cmpdTS{TS3.a}.     \end{document}      But it's a bad idea because in the output I get: "What about **3a**? It is formed from **2** via **TS4a**." instead of: "What about **3a**? It is formed from **2** via **TS3a**." because of the resetting the counter.


title: Brackets and parenthesis from different fonts in unicode-math

text: I am using the `unicode-math` package to use letters from the body font in math typesetting. The font I am using (Arno Pro) works quite well for this, because it includes a full Greek alphabet on top of the Latin one, but it is not a math font. For characters not included in the font, I am using XITS Math as fallback. However, some punctuation characters (such as a comma, parenthesis, square brackets and curly brackets) differ significantly between the fonts, so I took those from the body font as well. This works great for the smallest bracket size, but the font does not support the auto-scaling for brackets. Is it possible to instruct `unicode-math` to use brackets (and parentheses and curly brackets) from one font for the small size, and fall back to an other font for other sizes? I can switch between fonts like so:               % Use XITS Math for    [     ]     (     )     {     }     \setmathfont[range={"005B,"005D,"0028,"0029,"007B,"007D}]{XITS Math}          % Use Arno Pro for     [     ]     (     )     {     }     \setmathfont[range={"005B,"005D,"0028,"0029,"007B,"007D}]{Arno Pro}      Defining these as new commands makes it slightly easier to handle multiple fonts, but switching does not work in math mode, and even if it did, it would still require manually selecting the correct font for different brackets and parentheses. Does `unicode-math` offer a way to use one font for the bigger brackets, and an other for the normal size? An other workaround I found, is to use a proper math font in math mode, for all characters, but set the small brackets using the text font (via `\text{\\{}`). This is a nicer solution, but it still not as nice as I had hoped. Also, this might impact spacing around the bracket.


title: Xelatex, mathspec and microtype - weird error messages

text: I've tried to compile a document with XeLaTeX (TeXLive 2012) and both mathspec and microtype (version 2.5 which supports XeLaTeX). I need a 10.5pt font in the document, so I redefine the \normalsize command. It all works fine, but when I try to use microtype package it fails and I got the following error message               LaTeX Font Warning: Font shape `OML/cmm/m/it' in size <10.5> not available     (Font)              size <10.95> substituted on input line 14.          ! Cannot use \XeTeXcharglyph with cmmi5; not a native platform font.     \MT@get@slot@ ...rest \@tempcnta =\XeTeXcharglyph                                                    \MT@char \relax \ifnum \@t...     l.14 \[      With fontspec it works, with mathspec it doesn't. Does anybody have an idea what's going on here? This is my document               \documentclass{article}          \usepackage[MnSymbol]{mathspec}     \usepackage{microtype}     \setmainfont[Numbers=Lining, Ligatures=TeX]{Minion Pro}     \setmathfont(Digits,Greek,Latin)[Numbers=Lining]{Minion Pro}          \renewcommand{\normalsize}{\fontsize{10.5}{13}\selectfont}     \begin{document}          \[     \sum_{i=1}^\infty \alpha^i     \]          \end{document}      The part of the log with \listfiles looks like this               *File List*     article.cls    2007/10/19 v1.4h Standard LaTeX document class      size10.clo      2007/10/19 v1.4h Standard LaTeX file (size option)     mathspec.sty    2009/09/30 v0.2 LaTeX Package (Mathematics font selection      for XeLaTeX)     etoolbox.sty    2011/01/03 v2.1 e-TeX tools for LaTeX     etex.sty    1998/03/26 v2.0 eTeX basic definition package (PEB)     amstext.sty    2000/06/29 v2.01     amsgen.sty    1999/11/30 v2.0     ifxetex.sty    2010/09/12 v0.6 Provides ifxetex conditional     fontspec.sty    2012/05/06 v2.2b Advanced font selection for          XeLaTeX/LuaLaTeX     expl3.sty    2012/07/16 v3990 L3 Experimental code bundle wrapper     l3names.sty    2012/07/16 v3990 L3 Namespace for primitives     l3bootstrap.sty    2012/07/15 v3986 L3 Experimental bootstrap code     l3basics.sty    2012/07/15 v3987 L3 Basic definitions     l3expan.sty    2012/07/15 v3986 L3 Argument expansion     l3tl.sty    2012/07/15 v3986 L3 Token lists     l3seq.sty    2012/07/15 v3986 L3 Sequences and stacks     l3int.sty    2012/07/15 v3986 L3 Integers     l3quark.sty    2012/07/15 v3986 L3 Quarks     l3prg.sty    2012/07/15 v3986 L3 Control structures     l3clist.sty    2012/07/15 v3986 L3 Comma separated lists     l3token.sty    2012/07/15 v3986 L3 Experimental token manipulation     l3prop.sty    2012/07/15 v3986 L3 Property lists     l3msg.sty    2012/07/15 v3986 L3 Messages     l3file.sty    2012/07/15 v3986 L3 File and I/O operations     l3skip.sty    2012/07/15 v3986 L3 Dimensions and skips     l3keys.sty    2012/07/15 v3986 L3 Experimental key-value interfaces     l3fp.sty    2012/07/15 v3986 L3 Floating points     l3box.sty    2012/07/15 v3986 L3 Experimental boxes     l3coffins.sty    2012/07/15 v3986 L3 Coffin code layer     l3color.sty    2012/07/15 v3986 L3 Experimental colour support     l3luatex.sty    2012/07/15 v3986 L3 Experimental LuaTeX-specific functions     l3candidates.sty    2012/05/12 v3633 L3 Experimental additions to l3kernel     xparse.sty    2012/07/16 v3990 L3 Experimental document command parser     fontspec-patches.sty    2012/05/06 v2.2b Advanced font selection for      XeLaTeX/Lu aLaTeX     fixltx2e.sty    2006/09/13 v1.1m fixes to LaTeX     fontspec-xetex.sty    2012/05/06 v2.2b Advanced font selection for          XeLaTeX/LuaLaTeX      fontenc.sty     eu1enc.def    2010/05/27 v0.1h Experimental Unicode font encodings     eu1lmr.fd    2009/10/30 v1.6 Font defs for Latin Modern     xunicode.sty    2011/09/09 v0.981 provides access to latin accents and many     other characters in Unicode lower plane     eu1lmss.fd    2009/10/30 v1.6 Font defs for Latin Modern     graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)     keyval.sty    1999/03/16 v1.13 key=value parser (DPC)     graphics.sty    2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)     trig.sty    1999/03/16 v1.09 sin cos tan (DPC)     graphics.cfg    2010/04/23 v1.9 graphics configuration of TeX Live     xetex.def    2009/11/22 v0.94 LaTeX color/graphics driver for XeTeX (RRM/JK)     fontspec.cfg     xkeyval.sty    2008/08/13 v2.6a package option processing (HA)     xkeyval.tex    2008/08/13 v2.6a key=value parser (HA)     microtype.sty    2011/08/18 v2.5 <beta-07> Micro-typographical refinements      (RS)     microtype-xetex.def    2011/08/18 v2.5 <beta-07> Definitions specific to     xetex (RS)     microtype.cfg    2011/08/18 v2.5 <beta-07> microtype main configuration      file (RS)     t3cmr.fd    2001/12/31 TIPA font definitions     mt-MinionPro.cfg    2005/02/07 v1.0 microtype config file for MinionPro     mt-cmr.cfg    2011/04/09 v2.1 microtype config. file: Computer Modern      Roman(RS)     ***********


title: Bracketed Sentences

text: I am trying to achieve an effect similar to this book in diagramming sentences. Is there a package for achieving that? I can place all the brackets and subscripts manually, mixing math and text, but that quickly becomes ugly. I also tried defining a macro:               \global\long\def\constituent#1#2{\left[_{\mbox{#2}}\mbox{\,}\mbox{#1}\right]}      and the something like               $\mbox{It is wrong\ensuremath{\constituent{\mbox{that      \ensuremath{\constituent{\mbox{Bob insulted the president}}{IP}}}}{CP}}}$      gets rendered as ![enter image description here](http://i.stack.imgur.com/yq9zo.png) It's a workable solution, but sometimes I miss an mbox somewhere and get a compile error and it's a bit of a pain.


title: How to display two different dates on my title page?

text: My aim is to display both the experiment and the report date on the title page of my report; how can I achieve my goal? Edit: Part of my code before the main part is as follows:               \documentclass[12pt]{article}     \usepackage{a4, color}     \usepackage{amsmath, amsfonts, amssymb}     \usepackage{siunitx}     \begin{document}      \title{Understanding Semiconductor Lasers}     \author{Ongun Ar\i sev}     \date{\today}     \maketitle     \newpage      Thanks


title: mdwlist enumerate changes from Roman to Arabic after suspend

text: In LaTeX, I am using the `enumerate` and `mdwlist` packages to create an enumerated list with a pause in the middle, using the suspend/resume commands. I want Roman numerals counting the list items, which I specify by supplying the option `[(i)]` to the `enumerate` environment. The problem is that after the suspend/resume, the list resumes with Arabic numerals counting the list items, instead of Roman. If I supply the option `[(i)]` to the resume command, it gives a compile error. References to the list items also come out as mixed Roman/decimal. Does anyone know how to fix this, and keep Roman everywhere? Here is a minimal example:               \documentclass{article}     \usepackage{enumerate}     \usepackage{mdwlist}          \begin{document}       \begin{enumerate}[(i)] % option [(i)] indicates Roman         \item\label{itemi} First item % Roman       \suspend{enumerate}       Text between suspend and resume commands       \resume{enumerate}[(i)]         \item\label{itemii} Second item % decimal       \end{enumerate}       Ref to first item: ``\ref{itemi}''. Ref to second item: ``\ref{itemii}''.     \end{document}


title: How to center the minipage?

text: The left margin is too wide if I set `1.5\textwidth`:               \begin{document}          \noindent\begin{minipage}{1.5\textwidth}          test          \end{minipage}          \end{document}