title: Sublime Text 2 latex tools/New Build

text: Please excuse me if I've posted this in the wrong area. I've just started using Sublime Text 2 for Latex with the LaTeX tools plugin. It's wonderful. I'm using Mac ox 10.6.8 I'm wondering about adding an engine/build for processing `.gabc` files. Using `gregoriotex` I can run this in the command line `gregorio *.gabc` and it will process the file and output a `.tex` file. I can also do this with TeXworks which uses an engine with this :               #!/bin/tcsh          set path= ($path /usr/texbin /usr/local/bin)     set filename = "$1"     set texname = "${filename:r}.tex"     gregorio "$filename"     echo "produced $texname"      any help you can provide would be much appreciated.


title: "Scene breaks" — Blank lines that are nonblank at the top/bottom of a page

text: In many novels, a scene break is typeset as a blank line between paragraphs, except when that line would be the first or last on a page (and thus difficult to distinguish from the top/bottom margin), in which case it contains some fancy pattern, like three centered asterisks. How can one define a `\sceneBreak` command in LaTeX that inserts either a blank or "fancy" line as appropriate, depending on where on the page it occurs? I can't find any way to detect the current vertical position in LaTeX, so I've got pretty much nothing to show.


title: Forcing text to be on top of figures

text: I am trying to put some text on top of the figure like               \begin{figure}[!htb]     \begin{center}     \begin{tabular}{ll}            \subfloat{\label{figur:1}\includegraphics[width=79mm, ,height=200pt]{./pic1.eps}}             \tiny{\put(-45,-5) {Discriminator}}         \tiny{\put(175,-5) {Discriminator}}                 \tiny{\put(-95,185) {Some test}}         \tiny{  \put(130,180) {Some test again}}              \subfloat{\label{figur:2}\includegraphics[width=79mm, ,height=200pt]{./pic2.eps}}            \end{tabular}        \caption{bla bla bla}     \label{MVA_syst_JES}     \end{center}     \end{figure}      the problem is that although the "Discriminators" appear at the right place, and the "Some test" on the left figure, the "Some test again" is below the right figure.. How can I force my text to be on top ? ![enter image description here](http://i.stack.imgur.com/ySK4C.png)


title: Stretch image width within a two-column layout in ConTeXt

text: # Background Trying to place an image within two-column text. # Problem The image renders as follows, where the vertical bar is the column separator: ![Undefined Image](http://i.stack.imgur.com/9d8HY.png) # Code The following code produces the problem image:                 \placefigure[]{}{%         \externalfigure[7bee7b104cc5c6.jpg][           width=\textwidth,         ]       }      The following code, however, successfully embeds the image:                 \placefigure[]{}{%         \externalfigure[7bee7b104cc5c6.jpg][           width=100px,         ]       }      The problem is that the width of `100px` does not cause the image to expand to the local width (i.e., the width of the current column). # Ideas Some things I have tried:               width=\textwidth,     width=\the\textwidth,     width=\linewidth,     width={\the\textwidth},     width=local,      And even this:               \newdimen\imgwidth     \imgwidth=200px     ...     width={\the\imgwidth},      # Question How do you place a figure within a column such that it scales to fit the width? # Minimum Working Example Here is a small code snippet that illustrates the problem:               % interface=en output=pdftex          \definemixedcolumns[StyleColumns][       n=2,        separator=rule,       align=tolerant,       before={\blank[big]},     ]          \setupexternalfigures[       order={svg,pdf,png,jpg},       location=global,       %wfactor=fit,     ]          \setuphead[section][       after={\startStyleColumns},       aftersection={\stopStyleColumns},     ]          \starttext          \startbodymatter       \setuppagenumbering[conversion=numbers]       \setcounter[userpage][1]            \startchapter[         title={Chapter},         reference=sec:chapter,       ]            \startsection[         title={Section},         reference=sec:chapter,       ]            \placefigure[]{}{%         \externalfigure[sheep.jpg][             width=\textwidth,           ]       }            \startsubsection[         title={Equipment},         reference=sec:equipment,]         \input knuth       \stopsubsection            \stopsection       \stopchapter     \stopbodymatter          \stoptext      Comment out the `width=\textwidth,` line to see the image appear.


title: Better way to display long division?

text: I'm currently in the process of trying to create a worksheet for my students with long division problems for them to practice. Unfortunately, the best I've been able to come up with so far in terms of displaying long division like how they write it is: ![example](http://i.stack.imgur.com/oEOcr.png) Which could work if need be, but I thought I'd see if anyone has tooled around with this and come up with something better. To create that, all I did was type:               $\overline{)12345}$      Any suggestions for ways of making that better (so it looks more like what'd you see when using `\longdiv`) would be awesome.


title: How to define default 'program listing' title and parameters in Lyx

text: I'm using LyX software and need to embed python code snippets and the option I found is to put snippet in a file and then use: insert> file> Child Document ----> choose the snippet file ----> set include type to "Program Listing", set label to e.g. py:xx and caption to e.g. "My Python code" and define parameters such as backgroundcolor etc. Firstly, how can I change the title of the object from Listing 1: to e.g. Snippet 1? Secondly, how can I set parameters globally for all Program listing widgets so that I won't have to redefine them every time? Thirdly, please let me know if you know of a better way to embed Python code (I'm using PyDev on Eclipse IDE for python programming).


title: babel: adding language shorthands to work inside glossaries

text: I added ngerman shorthands to my english babel as described here. But they do not work for glossaries, and probably in other macors as discussed here. I load all the acronyms as a separate file in the preamble. Example:               \documentclass[a4paper,12pt]{report}     \usepackage[T1]{fontenc}     \usepackage[latin1]{inputenc}     \usepackage[english]{babel}           \makeatletter     \initiate@active@char{"}     \addto\extrasenglish{\languageshorthands{english}\bbl@activate{"}}     \addto\noextrasenglish{\bbl@deactivate{"}}     \declare@shorthand{english}{"~}{\textormath{\leavevmode\hbox{-}}{-}}     \makeatother          \usepackage[acronym,shortcuts]{glossaries}      \makeglossaries       \newacronym{CP-OFDM}{CP"~OFDM}{Cyclic Prefix OFDM}          \begin{document}        CP"~OFDM \\     \acs{CP-OFDM}     \end{document}      How can I solve the problem for acronyms? One solution is to move them inside the main text, after `\begin{document}`.


title: Hebrew vs. German/English translation side-by-side

text: I am having the following problem: I have Hebrew texts and want to put translations (and other information) right next to it in a nice way. (Previously I used the old Nisus Writer for Mac which for this purpose worked perfectly.) I have been playing around with tables but neither the way to do it nor the results are overly satisfying. Especially annoying is the fact that the texts are always interrupted by each other. This is what I want (see the picture): It should be (at least) two columns. The left one Hebrew (which begins on the right side), the right one German or English (which begins on the left side). Whenever there is space left on a line, it should be possible to easily put additional information (e.g. comments, sources) there. ![enter image description here](http://i.stack.imgur.com/GPN5p.jpg) Here is the text for those who want to play with it:               Gesegnet bist du, DER NAME, unser G’tt, König der Welt,     בָּרוּךְ אַתָּה יְיָ אֱלֹהֵינוּ מֶלֶךְ הָעוֹלָם,     der dem Hahne (andere: Verstand) Einsicht gegeben,     אֲשֶׁר נָתַן לַשֶֹּכְוִי בִינָה,     {Iob 38,36b yBer 9,2,13c} zu unterscheiden zwischen Tag und Nacht.     לְהַבְחִין בֵּין יוֹם וּבֵין לָיְלָה:     Gesegnet bist du, DER NAME, unser G’tt, König der Welt,     בָּרוּךְ אַתָּה יְיָ אֱלֹהֵינוּ מֶלֶךְ הָעוֹלָם,     der mich nicht als Heiden (andere: Fremden) gemacht.     שֶׁלֹא עָשַׂנִי גּוֹי: נ”א: נכרי     Gesegnet bist du, DER NAME, unser G’tt, König der Welt,     בָּרוּךְ אַתָּה יְיָ אֱלֹהֵינוּ מֶלֶךְ הָעוֹלָם,     der mich nicht als Sklaven gemacht.     שֶׁלֹא עָשַׂנִי עָבֶד:      Is there any package to achieve this nicely and easily?


title: Is there a bleed correction in KOMA?

text: I'm preparing a book (text only) using the `scrbook` class of the KOMA-Script that in the end should have A5 sized pages. To do that, I have to prepare a PDF that has slightly larger pages, since the printer will crop 3.15mm from all edges (bleed). This I can obtain with the class option `paper=15.44cm:21.62cm`. Now, I'd like to apply the box construction method presented in the KOMA- Script documentation. I can correct the page area for the binding using `BCOR=...` This length is then disregarded before applying the box construction. However, since the printer crops 3.15mm after printing my oversized A5 pdf, the final pages won't respect the box construction method which was applied on the oversized A5 paper (minus the binding correction). Basically, I'd need a similar setting to `BCOR` that takes into account the bleed before applying the box construction, right? How do I achieve that? I've seen this answer, but it doesn't seem to follow the box construction method for the page layout.


title: Closer underline

text: I am currently using `\underline{...}` to underline text. However, I want the underline to be closer to the letters (as of now, there's too much whitespace between the letters and the line). Is there a simple way to do this?


title: babel with russian and english language

text: I need to use Russian in my article, but the default language has to be English. How do I do this? I use:               \usepackage[russian]{babel}      Result: all chapter names and date are in Russian. Change to:               \usepackage[russian,english]{babel}      Result is the same. Change to:               \usepackage[russian,ukrainian,english]{babel}      Result: all chapter names and dates are in Ukrainian. It looks like `english` is ignored. How to fix this? Here the code which doesn't work:               \documentclass[a4paper,11pt,english]{article}          \usepackage[cp1251]{inputenc}          \usepackage[russian,ukrainian,english]{babel}          \begin{document}          \title{A}          \maketitle          \end{document}


I need to hyphenate a long lastname with a hyphen in it in a reference, e.g.:               @article{LastHyphenName:2013xy,     author = {Longlast-Namewithhyphen, Antonio and Anotherlastname, David},     title = {{How to hyphenate a reference that has a lastname with a hyphen?}},     journal = {Contributions To the TeX Stackexchange},     year = {2013},     volume = {2},     pages = {539--557},     }      I read in Line breaking (or hyphenation?) of references in apalike that one can hyphenate even a word from the .bib file with `\hyphenation`, but words that already have a hyphen cannot be hyphenated, or you do something like it's done in this SO thread. However, I think there has to be **another way** _than_ manipulating the BibTeX entries. Any solutions for this? **EDIT:**   * I'm editing my library externally and it is still growing as I'm adding new references to the bibliography during the writing process, thus substituting the hyphens with a `shorthand` in the final ( _exported_ ) .bib file is not very efficient time-wise.    * Also, my bibliography has a ton of authors with their last names being of hispanic origin which would mean time-costly, manual editing of the .bib file (I know that hispanic last names are normally not connected with a hyphen, but the hyphens is internationally introduced to avoid confusion). I'm writing my thesis with `\classicthesis`, so the preamble is much more complex, but here's a **MWE:**               \documentclass{scrbook} % KOMA-Script article     \usepackage[english]{babel}     \usepackage{lipsum}     \usepackage[round]{natbib}     \usepackage{fontspec}     \usepackage{xunicode}     \setmainfont[Mapping=tex-text]{Minion Pro}     \usepackage[english]{babel}               \begin{document}      \hyphenchar\font=\string"7F          \parbox{1cm}{\cite{LastHyphenName:2013xy}}          \bibliographystyle{kluwer}      \bibliography{lib}          \end{document}      .bib file               @article{LastHyphenName:2013xy,     author = {Longlast-Namewithhyphen, Antonio and Anotherlastname, David},     title = {{How to hyphenate a reference that has a lastname with a hyphen?}},     journal = {Contributions To the TeX Stackexchange},     year = {2013},     volume = {2},     pages = {539--557},     }      Changing the hyphenchar is not working.


title: tikz: segments with 5pt dotted ends

text: I am using tikz and would like to draw some straight line segments such that both ends of the segment has 5pt dotted and the rest plain. In pure text, it would be something like xxx-----------------xxx I do not want to compute the intermediate points where the changes occur other than by saying it is at fixed distance from the ends. Thanks, V.


title: Obtain a single TOC from using both listings and SASnRdisplay

text: I began using LaTeX just yesterday and I'm stuck on a frustrating problem. I need to automatically include a lot of source code into my document and getting it code-highlighted, row-numbered, labeled and indexed. I've done most of the job, except few points. First of all, I'm using different languages: PHP, JS, PostgreSQL, R and SAS. I've found that `listings` doesn't correctly treat `/**/` SAS comments, so I decided to use the `SASnRdisplay` package which seems to be a sort of "extension" of the `listings` package. They share a lot of aspects. After a lot of tricking I finally got satisfied with the results. What I need to do now is creating a list of listings containing the references to the listings generated by `listings` and the listings generated by `SASnRdisplay` using a single common numeration. At the moment I have basically two numberings: the `listings` numbering and the `SASnRdisplay` numbering. I've tried using `\setcounter{lstlisting}{3}` but it doesn't seem to work. Here's an example to test the `\lstlistoflistings` command (the other features are not implemented here for simplicity):               \documentclass[a4paper,twoside]{memoir}               \usepackage[T1]{fontenc}     \usepackage{listings}     \usepackage{SASnRdisplay}               \begin{document}          \begin{lstlisting}[language=PHP, caption=First listing - using package ``listings'']         $var = "value";     \end{lstlisting}               \begin{lstlisting}[language=Java, caption=Second listing - using package ``listings'']         console.log('0123456789');     \end{lstlisting}                    \begin{Rcode}[caption=Third listing - using package ``SASnRdisplay'']         df <- c(1,2,3)     \end{Rcode}               \begin{SAScode}[caption=Fourth listing - using package ``SASnRdisplay'']         /* comment */         PROC PRINT data=mydata; VAR v1; RUN;     \end{SAScode}                    \lstlistoflistings          \end{document}      And here's the output: ![output](http://i.stack.imgur.com/igvTC.png)


title: How to adapt the color of a label using pgfplots

text: I created this style that shifts the labels and put them on the bottom of the ybars. However, I have a problem with the bars that have too short length (for example, see the 8.7 and 5.1 in the example below). I want to check if the values are less than some threshold, or the length of the bar is shorter than the label (number) then change its color. How can I overlay another label on top of the one in white when the bar is shorter? or maybe change the color of the label to a gradient color? or just overlay the part that is outside of the bar? ![error image](http://i.stack.imgur.com/Ju8bQ.jpg)               \documentclass{standalone}          \usepackage{tikz}     \usepackage{pgfplots}     \usepackage{pgfplotstable}     \usetikzlibrary{calc}          \begin{document}     \makeatletter     \begin{tikzpicture}     \begin{axis}[     ybar,     every node near coord/.style={       check for zero/.code={ % If meta=0, make the node a coordinate (which doesn't have text)         \pgfmathfloatifflags{\pgfplotspointmeta}{0}{             \pgfkeys{/tikz/coordinate}         }{}       },       check for zero, color=white, text opacity=1, font=\footnotesize, inner ysep=0.5pt,     },%     % Bottom nodes      calculate full offset/.code={         \pgfkeys{/pgf/fpu=true,/pgf/fpu/output format=fixed}         \pgfmathsetmacro\testmacro{((\pgfplotspointmeta-\pgfkeysvalueof{/pgfplots/ymin})*10^\pgfplots@data@scale@trafo@EXPONENT@y)*\pgfplots@y@veclength}         \pgfkeys{/pgf/fpu=false}     },%     nodes near coords bottom/.style={         every node near coord/.append style={             /pgfplots/calculate full offset,             yshift=-\testmacro,             rotate=90, anchor=west,%I need the rotate text here and not in the              %general style, as the ybar redefines the style         }     },%     ymin=0,     nodes near coords={\pgfmathprintnumber[fixed zerofill,precision=1]{\pgfplotspointmeta}},     nodes near coords bottom,     ]     \pgfplotstableread{     % set real imag mag     1 8.7     2 5.1     3 91.8367          }\mydata     \addplot table[x index=0,y index=1,header=false] {\mydata};     \end{axis}     \end{tikzpicture}     \makeatother     \end{document}      *** EDIT *** I need to create some special gradient on each label that is below the bar height. For example, I need to adapt something like How to put color gradient to "Desired Text Only" to each label that is not showing. However, I cannot find a way to put the macro in the `style` section of the codes. Or is there any equivalent solution?


title: How to escape curly braces within \texttt{}

text: How can I escape curly braces within the `\texttt{}` environment? `\texttt{ \{ }` produces errors within my template, which can be found here: (link) I saw this question for square braces, but the solution seems like a bit of a hack, and doesn't work for curly braces. (FYI, the purpose of this is to include a regex statement in monospaced font, amoung normal font in the rest of a table. If there's a preferable solution, I'm open to ideas there.)


title: How can I structure an enumeration using an array?

text: I want to structure an enumeration using an array; that is, I want               \begin{enumerate}[i]         \begin{array} {lr}             \item $a \sim a$ & (reflexivity)             \item $a \sim b$ then $b \sim a$ & (symmetry)             \item $if a \sim b and b \sim c then a \sim c$ & (transitivity)         \end{array}     \end{enumerate}      To look something like               a ~ a                                                       (reflexivity)     a ~ b then b ~ a                                            (symmetry)     if a ~ b and b ~ c then a ~ c                               (transitivity)


title: math cases package problem

text: I am preparing a presentation with beamer. I want to use a math formulas that contains a cases               \begin{cases}{|x|=}     x, & for $x \geq 0$\\     -x, & for $x < 0$     \end{cases}      the problem in that my result is in this picture![enter image description here](http://melmorabity.fedorapeople.org/latex/beamer/old/beamer- goddard/beamer-goddard-0.1.tar.bz2) thanks in advance * * * Thanks for your interest Here is my result, I am using the template in this link ![enter image description here](http://i.stack.imgur.com/MXhVe.png)


title: Which switches are necessary to be specified when invoking latex?

text: By default TeXnicCenter activates `--src -interaction=nonstopmode`. The following screenshot shows the other switches but `--src` does not exist there. ![enter image description here](http://i.stack.imgur.com/hEXSv.png) Shortly speaking,   1. What is `--src` for?   2. Which is the correct one, `-src` or `--src`?   3. Which switches are necessary to be specified when invoking `latex`?


title: How to install a latex package in MacOS TeXLive?

text: I just downloaded `cyrillic` package into a temp directory and executed:               sudo latex cyrlatex.ins      It works, but it produces a few dozen files in the same directory. How to place them into my TeXLive installation directory? Or let's put it this way - how to install a package into TeXLive on Mac OS?


title: Undefined control sequence (\resetOptions) error

text: Would someone kindly help what's causing the following error:               ! Undefined control sequence.     \resetOptions ->\@zero                             =0\def \pst@linetype {0}\pstScalePoints (1,1){}{}\pss...     l.1900 \resetOptions          ?      ! Emergency stop.     \resetOptions ->\@zero                             =0\def \pst@linetype {0}\pstScalePoints (1,1){}{}\pss...     l.1900 \resetOptions      MWE:                   \documentclass[english, landscape, a4paper]{slides}              \usepackage{graphics}         \usepackage{graphicx}         \usepackage{babel}         \usepackage{pst-eps}         \usepackage{pstricks}         \usepackage{multido}         \usepackage{pst-node}         \usepackage{pst-math}         \usepackage{pstricks-add}              \begin{document}         \begin{TeXtoEPS}         \setlength{\unitlength}{1cm}              \newsavebox{\EpsImgBox}         \savebox{\EpsImgBox}{%             \includegraphics[angle=90]{foo.eps}         }              \begin{pspicture}(\wd\EpsImgBox,\ht\EpsImgBox)         {             \rput[lb](0,0){                 \usebox{\EpsImgBox}             }                 }         \end{pspicture}     \end{TeXtoEPS}     \end{document}       Thanks.


title: Simplify index nested entries

text: I want create index nested entries and typeset the indexed word with the same command. For simple entries like `\index{foo}` I can solve this with some macro or `\index*{foo}` or `\Index{foo}` with the packages `index` and `hvindex`respectively, but the problem is with nested entries like `foo!bar` where I want type only "`bar`" in the text and obtain a correct nested entry in the index, that is:               foo       bar, 1       According to manual of `hvindex`, this package do just that, but I am unable to obtain any nested entry with this package in an updated TeXLive 2013. This MWE type correctly "`bar`" in main text but only "`bar, 1`" as index entry in my computer:               \documentclass{article}     \usepackage[makeidx]{hvindex}     \begin{document}     \Index{foo!bar}     \printindex     \end{document}      Instead, `index` make the correct nested entry but write "`foo!bar`" as is in the body text:               \documentclass{article}     \usepackage{index}     \makeindex     \begin{document}     \index*{foo}     \index*{foo!bar}     \printindex     \end{document}


title: What happens to a relative path in a file added with \input{}?

text: I stumbled upon the following question: In the preamble of my main tex file for my thesis, I've included several other files with definitions for abbreviations which are in the same path as **`main.tex`** , so I've only used the filename with the _relative path_ to include them:               \include{abbrevations.tex}      For using some of my definitions also in other TeX-Documents (e. g. graphics created with IPE) I've created a file called **`IPE-Preamble.tex`** , which contains selected parts of my preamble, so also the lines `\include{abbrevations.tex}`. Both mentioned files are located in the same path THESIS/ I've included the file `IPE-Preamble.tex` in many other files which are located in the path THESIS/graphics successfully, it works:               \input{/drive/path/path2/THESIS/IPE-Preamble.tex}      Now I wanted to use this file also in .tex files which are located elsewhere on the same computer (let's say path `/drive/path3/path4/main2.tex`). I used the same input command with the full path for IPE-Preamble as stated above, but I get an error message, that commands (which are defined in `abbreviations.tex` are "not defined", so it seems that the `include` command does not work in this case. Does `TeX` search for the file `/drive/path3/path4/abbreviations.tex` because of the relative path of the `include` command in `IPE-Preamble.tex`?


title: Problem with typesetting maths content in an unusual font in beamer

text: I want to typeset math in different font called Antykwa Torunska, which supports maths. Unfortunately, when using it in `beamer` the math font is switched to the standard math font of `beamer`. How can I change this behaviour? Here is a minimal example:               \documentclass{beamer}     % Mathekram:     \usepackage{amssymb, amstext, amsmath}     % Font:     \usepackage[math]{anttor}     \usepackage[T1]{fontenc}               \begin{document}          \begin{frame}{Testframe}        This is fine: 1234567890, \textit{x}, \textit{p}, \textit{t}\\        This is not fine: $1234567890$, $x$, $p$, $t$     \end{frame}          \end{document}      When I change `beamer` to `article` it works fine.


title: memoir: headings numbering starting at section level

text: I'm writing a set of documents using the same `memoir` based template. One particular document does not use `chapter` level heading and just `section` and `subsection` levels. I have no chapters but the document seems to use a default chapter 0 so my sections are numbered 0.1, 0.2, 0.3 and so on. How can I disable `chapter`level numbering so I get them numbered 1, 2, 3,...?


title: Copyright issue, replace bitmaps by empty frame

text: I have a thesis to submit tomorrow as .pdf. The University requires written permission from the copyright holder for every figure taken from book/journal --a thing I don't have, and I didn't know was required until today. The images in question are .pdf, .png and .jpg, typeset with pdflatex. Is there some kind of environment I can wrap around the `\includegraphics{}` that will produce a replacement of the exact same size? Checking width and height for each and every graph (sometimes I use the `[resolution=300]` statement) would take quite a while.


title: Name of the author to appear in the text

text: I'm new to LaTeX and I'm using `abbrv` as `bibliographystyle`. I want to to refer to a paper in the middle of the sentence and I want the name of the author to appear in the text as well. Is there any way to do that?


title: ConTeXt editors

text: There is a very active question about LaTeX editors and IDEs. I personally use Vim with LaTeX-suite for any latex editing, and I am very happy with it. Lately I began to use ConTeXt more and more. I would like to know what people use for editing ConTeXt. Especially is there is a set of Vim macros similar to LaTeX-suite. I know there is a page about Vim on ConTeXt garden, but as far as I can tell, it has not been updated in quite a while.


title: "Predefine" a LaTeX file as master-file using Texmaker

text: Is there a way to put a command in either the master file or the subfiles in order to sort of predefine the master file? The reason I would like to do this is to avoid having to click on options and define the master file every time I continue working. I'm not sure if this depends on how I set up my scrartcl - but just in case, here is what the folder with the files and what the master file looks like: "root" folder: report.tex, mystyle.sty, img folder (images), tex folder (subfiles.tex)               \documentclass[a4paper,fontsize=12pt]{scrartcl}     \usepackage{mystyle}          \begin{document}     \changefont{ppl}{m}{n}     \input{tex/titlepage}     \newpage     \input{tex/intro}     \input{tex/sec1}     \input{tex/sec2}     \newpage     \bibliographystyle{plainnat}     \bibliography{C:/Users/username/bib/clusters}   %%% WINDOWS     %\bibliography{../bib/clusters}   %%% LINUX     \end{document}      And the subfiles are really simple, just containing content. If there is a way to predefine the master file - I suppose that this depends on the editor used. But is there some generell "LaTeX-command" to do this also? So that one can define the master file generally?


title: yrcmex10 problem AFTER December 5, 2012

text: I updated MiKTeX and everything. I get this:               (C:\Users\Bora\Desktop\aaa\12.23.2011.aux)Trying to make PK font yrcmex10 at 600 DPI...     Running miktex-makemf.exe...     miktex-makemf: The yrcmex source file could not be found.          Running ttf2pk.exe...     miktex-makepk: PK font yrcmex10 could not be created.      )     (\end occurred inside a group at level 1)          ### semi simple group (level 1) entered at line 67 (\begingroup)     ### bottom level     !pdfTeX error: miktex-pdftex.exe (file yrcmex10): Font yrcmex10 at 600 not foun     d      ==> Fatal error occurred, no output PDF file produced!      The MWE is:               \documentclass[12pt]{article}           \newcommand{\BEL}[1]{\text{\boldmath ${\mathsf{L}\!\negmedspace\negmedspace\mathsf{L}}_{#1}$}}      \usepackage{yhmath}      \usepackage{bm}           \begin{document}      \[ \big((\forall y \in x)A^{\BEL{\alpha}}(x|y) A^{\BEL{\alpha}}\big) \]      \end{document}      My directories are like this: ![enter image description here](http://i.stack.imgur.com/ngGzK.png)


title: XeTex - Times New Roman font for Romanian characters ș, ț, Ș and Ț

text: I have downloaded the Times New Roman font and put it into `.local/fonts` where it should be (my OS is Fedora 17 and I use TexLive 2012). It is recognized by LibreOffice and LyX. LibreOffice displays correctly the Romanian characters `ș,ț,Ș,Ț` and even converting the LibreOffice document to pdf keeps them visible and rightly displayed, but when I write a document in LyX using Times New Roman and XeTex compilation, even though I see them in the input document, the pdf output displays four squares instead of the desired characters. I expected that, since the command `fc-list :lang=ro | Times` does not display anything, so it's an incompatibility between Times New Roman and Romanian language (which I can't explain since LibreOffice correctly displays the four characters). How can I solve this? Do I need a special Times New Roman font? I haven't found one, it's almost 2013 and there's no Times New Roman for the Romanian language used in LyX with XeTex :)


title: Problem with multicols environment layout

text: I've a little problem with `multicols`. This is my MWE:               %%!TEX TS-program = latex     \documentclass[a4paper,11pt]{article}     \usepackage[frenchb]{babel}     \usepackage{multicol}          \usepackage[a4paper, dvips, left=1.5cm, right=1.5cm, top=2cm,%     bottom=2cm, marginpar=5mm, marginparsep=5pt]{geometry}          \begin{document}            \setlength{\columnseprule}{0.5pt}       \begin{multicols}{4}\noindent         \begin{enumerate}         \item $2 \times 4 = \ldots\ldots$         \item $45 \div 5 = \ldots\ldots$         \item $4 + 10 = \ldots\ldots$         \item $10 \times 10 = \ldots\ldots$         \item $\ldots\ldots - 3 = 6$         \end{enumerate}       \end{multicols}     \end{document}      This produces calculations in only the first 3 columns, but I want the four columns filled with one calculation before putting a second one in the first column... How can I do that?


title: pgfplots filling under spline

text: Is there any way to fill the area under a spline? In the example below, removing `mesh` from the `addplot` options closes the cycle as expected with by joining the first and last coordinate by a straight line. How can the fill instead be to the axis?               \documentclass{standalone}     \usepackage{pgfplots}     \usepgfplotslibrary{patchplots}     \begin{document}     \begin{tikzpicture}     \begin{axis}     \addplot[patch,patch type=cubic spline]coordinates{(0,0)(3,1)(1,.5)(2,.5)};     \end{axis}     \end{tikzpicture}     \end{document}


title: Problem with beamerarticle overlays and only

text: I have a problem with `beamerarticle`. First of all, I'm not that experienced with LaTeX or Beamer. I've gotten this far with samples and stuff without completely understanding, what is doing what. So that's perhaps one of the reason, I've hit the wall now. I've made an presentation, which uses extensively the following format:               \begin{frame}[label=the_general]{Title of the transitioning slide}     \begin{overlayarea}{\textwidth}{1cm}     \only<1>{First phase before slide.}     \only<2>{Second phase before slide.}     \only<3>{Third phase before slide.}     \begin{column}{6cm}     \includegraphics[height=4cm]<1>{pic1}     \includegraphics[height=4cm]<2>{pic2}     \includegraphics[height=4cm]<3>{pic3}     \end{column}     \begin{column}{4cm}     \begin{overlayarea}{\textwidth}{4cm}     \only<1>{First phase side note.}     \only<2>{Second phase side note.}     \only<3>{Third phase side note.}     \end{overlayarea}     \end{column}     \end{columns}     \begin{overlayarea}{\textwidth}{1cm}     \only<1>{First phase below slide.}     \only<2>{Second phase below slide.}     \only<3>{Third phase below slide.}     \end{overlayarea}     \end{frame}      What I get in a slide is something like this:               (First phase before slide.)     (pic1)   (First phase side note.)     (First) phase below slide.)      ...and the next slide....               (Second phase before slide.)     (pic2)   (Second phase side note.)     (Second phase below slide.)      ...and so on. This is perfect for me, exactly what I want, perfectly aligned pictures one after the other... Now, what I would like to have as an article is like this.               (First phase before slide.)     (pic1)        (First phase side note.)     (First) phase below slide.)          (Second phase before slide.)     (pic2)        (Second phase side note.)     (Second phase below slide.)          (Third phase before slide.)     (pic3)        (Third phase side note.)     (Third phase below slide.)      But, with `beamerarticle` I'm able to get pretty pages with nice well placed headings, seemingly more perfect that I hoped for, but the sequence is:               (First phase before slide.)     (Second phase before slide.)     (Third phase before slide.)     (pic1)(pic2)(pic3)        (First phase side note.)     (Second phase side note.)     (Third phase side note.)     (First) phase below slide.)     (Second phase below slide.)     (Third phase below slide.)      Thus completely ruining the flow of my presentation/article. This far I've gotten with start definitions like this (before the actual frames):               \documentclass[a5paper]{article}     \usepackage{beamerarticle}     %\usepackage{tikz}     \mode<article>     {     \usepackage{fullpage}     %       \setbeamertemplate{frame begin}[tikzed]     %\setbeamertemplate{frame end}[tikzed]     \usepackage{pgf}     }      As you can see, I've tried different things also, and with this I've gotten the closest, but not nearly close enough. I would be very grateful, if somebody could tell me how to accomplish what I need. I've searched the net quite a bit, but haven't found the correct solutions.


title: How to draw a Dyck path on PSTricks?

text: I would like to know how to easily draw a Dyck path similar to the one below using PSTricks instead of Tikz. Any ideas? Thank you!               \documentclass[border=2mm]{standalone}          \usepackage{tikz}          \begin{document}          \begin{tikzpicture}[scale=0.8]     (8,0) rectangle +(5,5);     \draw[help lines] (8,0) grid +(5,5);     \draw[dashed] (8,0) -- +(5,5);     \coordinate (prev) at (8,0);     \draw [color=blue, line width=2] (8,0)--(9,0)--(10,0)--(10,1)--(13,1)--(13,3)--(13,5);     \draw [color=red, line width=1] (8,0)--(9,0)--(10,0)--(10,1)--(10,2)--(13,2)--(13,3)--(13,5);          \draw (10,1) node [scale=0.5, circle, draw,fill=blue]{};     \draw (13,2) node [scale=0.5, circle, draw,fill=red]{};      \end{tikzpicture}     }     \end{document}


title: Unlabelled nodes in matrix of maths nodes

text: I have the following picture in TikZ at the moment:               \documentclass[11pt,a4paper]{report}           \usepackage{tikz}     \usepackage[utf8]{inputenc}     \usetikzlibrary{matrix,arrows,decorations.pathmorphing}     \begin{document}     \begin{tikzpicture}[>=angle 90]     \matrix(a)[matrix of math nodes,     row sep=3em, column sep=2.5em,     text height=1.5ex, text depth=0.25ex]     {X & H& X  \\     A&X &B \\     X & H' &X  \\};               \path[->,font=\scriptsize]     (a-1-2)  edge node[above]{$$} (a-2-3);          \path[->,font=\scriptsize]     (a-2-1)  edge node[above]{$$} (a-1-2);          \path[->,font=\scriptsize]     (a-2-1)  edge node[above]{$$} (a-3-2);          \path[->,font=\scriptsize]     (a-3-2)  edge node[above]{$$} (a-2-3);          \end{tikzpicture}     \end{document}      I was wondering if there is a way for me to get rid on the labels X on the nodes but still keep the nodes, so that I can draw the diamond. If I just leave it empty it gives an error saying that all nodes must be labelled, possibly empty. Is there some empty command?


title: What can I do to make this code compile faster

text: I'm still a bit of a novice at TikZ. The following MWE seems fairly simple and straight forward, but it compiles much more slowly than it seems to me it should. Could someone explain what's going on? Or possibly make suggestions which will still result in the same image but compile more quickly? Initially, I thought it might be the `calc` library which was slowing things down. The MWE shows how I rewrote things to avoid using `calc`. The old approach is merely commented out.               \documentclass{article}     \usepackage[margin=0.5in]{geometry}     \usepackage{tikz}     %%\usetikzlibrary{calc}     \usetikzlibrary{arrows.meta}          \makeatletter          \def\@aem(#1)#2;{\node[anchor=base] at (#1) {#2};                       \draw (#1/nw) rectangle (#1/se);                      \path (#1) + (0,6ex) coordinate (#1/t)                                 + (0,2.5ex) coordinate (#1/h);                      %%\coordinate (#1/t) at ($(#1)+(0,6ex)$);                       %%\coordinate (#1/h) at ($(#1)+(0,2ex)$);                       \draw[line width=2pt,arrows=-{Stealth[length=2ex,width=1.5ex]}] (#1/t) -- (#1/h); }     \def\@aeo(#1)#2;{\node[inner sep=1ex,anchor=base] at (#1) {#2}; \draw (#1/nw) rectangle (#1/se);}     \def\@aex(#1)#2;{\node[anchor=base] at (#1) {#2};}     \def\@aef(#1)#2;{\node[anchor=base] at (#1) {\textcolor{gray!20}{#2}};}          \def\ae#1#2#3{\csname @ae#1\endcsname(p#3){#2};}          \makeatother          \def\aemarkup#1{%%       \begin{tikzpicture}         \foreach \x in {0,1,2,...,14}           {             \path (0,0) --  (\x*0.45cm,0) coordinate (p\x)                          +  (115:3ex)     coordinate (p\x/nw)                          +  (-20:1.5ex)   coordinate (p\x/se);             \draw (p\x) ++(0,-0.5ex) -- ++(0,-2ex);             %%\coordinate (p\x)    at ($(0,0)+\x*(0.45cm,0)$);             %%\coordinate (p\x/nw) at ($(p\x)+(115:3ex)$);             %%\coordinate (p\x/se) at ($(p\x)+(-20:1.5ex)$);             %%\draw (p\x) -- ($(p\x)-(0,2ex)$);           }         \foreach \y [count=\yi from 0] in {#1}           { \expandafter\ae\y\yi}         \end{tikzpicture}\par}          \begin{document}          Diagram:          \aemarkup{mx , ox , ox , ox , ox , ox , ox , oM , ox , ox , ox , oa , ox , ob , oc}     \aemarkup{fx , ox , mx , ox , ox , ox , ox , oM , ox , ox , ox , oa , ox , ob , oc}     \aemarkup{fx , ox , fx , ox , mx , ox , ox , oM , ox , ox , ox , oa , ox , ob , oc}     \aemarkup{fx , ox , fx , ox , fx , ox , mx , oM , ox , ox , ox , oa , ox , ob , oc}     \aemarkup{fx , ox , fx , ox , fx , ox , fx , oM , mx , ox , ox , oa , ox , ob , oc}     \aemarkup{fx , ox , fx , ox , fx , ox , fx , oM , fx , ox , mx , oa , ox , ob , oc}     \aemarkup{fx , ox , fx , ox , fx , ox , fx , oM , fx , ox , fx , oa , mx , ob , oc}     \aemarkup{fx , ox , fx , ox , fx , ox , fx , oM , fx , ox , fx , oa , fx , ob , mc}     \aemarkup{mx , ox , ox , oM , ox , oa , ob , xc}     \aemarkup{fx , ox , mx , oM , ox , oa , ob , xc}     \aemarkup{fx , ox , fx , oM , mx , oa , ob , xc}     \aemarkup{fx , ox , fx , oM , fx , oa , mb , xc}     \aemarkup{mx , oM , oa , xb , xc}     \aemarkup{fx , oM , ma , xb , xc}     \aemarkup{mM , xa , xb , xc}          \end{document}      ![enter image description here](http://i.stack.imgur.com/VFkB3.png)


title: float and subfig package interference: subfigures with exact placement

text: I'm using the `subfig` package for subfigures and the `float` package for forced float placement (`H`). Using both these packages results in the subcaption not getting reset. The following example shows six figures from (a) to (f), whereas I'd expect them to be from (a) to (c), twice.               \documentclass[a4paper]{scrartcl}          \usepackage{graphicx}      \usepackage{float}     \usepackage{subfig}          \begin{document}          \begin{figure}[H] \centering         \subfloat[first subfig]{\includegraphics{img}}         \subfloat[second subfig]{\includegraphics{img}}         \subfloat[third subfig]{\includegraphics{img}}     \end{figure}          \begin{figure}[H] \centering         \subfloat[first subfig]{\includegraphics{img}}         \subfloat[second subfig]{\includegraphics{img}}         \subfloat[third subfig]{\includegraphics{img}}     \end{figure}          \end{document}      What I'm trying to achieve is subfigures exactly where I want them to be. Is there a way to solve this interference, or is there a better solution?


title: PGFplots multiple ylabels

text: I want to have multiple y labels in a group plot. Now I have 4 different values for ylabels:`Range1`, `Range2`, `Range3` and `Range4`. I want to add a common ylabel say "throughput". How do I do that?               \documentclass{standalone}     \usepackage{graphicx}     \usepackage{tikz}     \usepackage{pgfplots}     \usepgfplotslibrary{groupplots}     \pgfplotsset{compat=newest}     \begin{document}          \begin{tikzpicture}         \begin{groupplot}[group style={group size= 2 by 4},height=5cm,width=6.4cm]             \nextgroupplot[title=type1,ylabel={Range1 },symbolic x coords={1,2,4,8,16,32,64,128},xtick=data]                     \addplot[blue] table{Data/test.dat};             \nextgroupplot[title=type2,symbolic x coords={1,2,4,8,16,32,64,128},xtick=data]                     \addplot[blue] table{Data/test.dat};             \nextgroupplot[ylabel={Range2 },symbolic x coords={1,2,4,8,16,32,64,128},xtick=data]                     \addplot[blue] table{Data/test.dat};             \nextgroupplot[symbolic x coords={1,2,4,8,16,32,64,128},xtick=data]                     \addplot[blue] table{Data/test.dat};             \nextgroupplot[ylabel={Range3 },symbolic x coords={1,2,4,8,16,32,64,128},xtick=data]                     \addplot[blue] table{Data/test.dat};             \nextgroupplot[symbolic x coords={1,2,4,8,16,32,64,128},xtick=data]                     \addplot[blue] table{Data/test.dat};             \nextgroupplot[xlabel={Number of Threads},ylabel={Range4 },symbolic x coords={1,2,4,8,16,32,64,128},xtick=data]                     \addplot[blue] table{Data/test.dat};             \nextgroupplot[xlabel={Number of Threads},symbolic x coords={1,2,4,8,16,32,64,128},xtick=data]                     \addplot[blue] table{Data/test.dat};         \end{groupplot}     \end{tikzpicture}          \end{document}      ![output](http://i.stack.imgur.com/60AF8.png)


title: What is the difference between \pgfutil@empty and \empty in an \ifx environment

text: I've seen that sometimes (most in TikZ code) people use `\pgfutil@empty` to test a macro. Is there any benefit from using `\pgfutil@empty` instead of the `\empty` macro? Also, is there any usage or good practices for the preference of one over the other? Can you elaborate in which cases you prefer one over the other? Or even if one is obsolete and you should always use the other?


title: How do you add custom page entries in Table of Contents?

text: I have a paper written in LaTeX with a LaTeX generated Table of Contents. I need to attach an Appendix that is generated in Word but have the Table of Contents show the entries from the Appendix. Is there some type of LaTeX command that will allow me to add an entry to the Table of Contents with the page number from the Appendix manually?


title: Why doesn't \ifx work inside a node command in TikZ?

text: I have the following piece of code               \documentclass{article}     \usepackage{tikz}     \def\pos{5,5}         \begin{document}      \begin{tikzpicture}           \node (b)  at (0,0) {test};       \node (a) \ifx\pos\pgfutil@empty\else at(\pos)\fi {something};      \end{tikzpicture}     \end{document}      I want to test if the macro `\pos` holds a position or not and in case it does I want to use it to print the node. However, when I compile the example above I get some errors in the way of: > Package tikz Error: A node must have a (possibly empty) label text. > > Use of `\@next` doesn't match its definition. What am I doing wrong? Or in which way can I achieve my goal of testing the macro for display?


title: Tell TikZ arrow to terminate prematurely

text: Is it possible to tell arrows in TikZ to ease off a bit so as to not get within a thousandths of an inch of the target node? In my particular case I am using shadows which are interfering with the arrow heads (see image below): ![enter image description here](http://i.stack.imgur.com/Eqokq.jpg)


title: Arrow accented with a dot (natural transformation)

text: In Mac Lane's "Categories for the Working Mathematician" I came across an arrow accented above with a dot, indicating a natural transformation. I failed to find an existing symbol for this. It looks something like               $$\overset{\bullet}{\longrightarrow}$$      but the dot is smaller and close to the arrow. I want to avoid if possible constructing a custom symbol. Does something like this exist? DeteXify could not find one.


title: Swapping of surname and its initials

text: Below is my code:               \documentclass{article}     \newcommand\JRNL[1]{#1}     \newcommand\AUGRP[1]{{#1}}     \newcommand\AUTHOR[1]{#1}     \newcommand\SNM[1]{#1}     \newcommand\INITS[1]{#1}     \newcommand\SEP[1]{#1\ignorespaces}     \newcommand\ATITLE[1]{#1}     \newcommand\JTITLE[1]{{\em #1}}     \newcommand\VOLUME[1]{#1}     \newcommand\YEAR[1]{#1}     \newcommand\FPAGE[1]{#1}     \newcommand\LPAGE[1]{#1}               \begin{document}          \begin{thebibliography}{99}          \JRNL{     \bibitem{00}     \AUGRP{\AUTHOR{\INITS{L.}\SEP{ }\SNM{Anselin}}\SEP{, }     \AUTHOR{\INITS{A.K.}\SEP{ }\SNM{Bera}}\SEP{, }     \AUTHOR{\INITS{R.}\SEP{ }\SNM{Florax}}\SEP{ and }     \AUTHOR{\INITS{M.J.}\SEP{ }\SNM{Yoon.}}}\SEP{. }     \YEAR{1996}\SEP{. }     \ATITLE{Simple Diagnostic Tests for Spatial Dependence.}\SEP{ }     \JTITLE{Regional Science and Urban Economics}\SEP{ }     \VOLUME{26}\SEP{: }     \FPAGE{77}\SEP{--}     \LPAGE{104}\SEP{.}     }          \end{thebibliography}          \end{document}      My problem is I need to display the first author initial after surname, and the rest should stay as is. Please look into the below screenshot for your reference. Without changing the Tex code can I get the required below output? Kindly confirm. ![enter image description here](http://i.stack.imgur.com/j7t4R.png)


title: Caption automatically centered in a REVTeX document

text: I'm recently writing an APS paper with REVTeX and encountered a problem. The captions in all figure and table floats are automatically centered instead of being fully justified. I tried `\captionsetup` but there are only options like `raggedright` or `raggedleft`. Can anyone tell me what I was missing? The following is the header of my document:               \documentclass[aps,prl,reprint,twocolumn,amsmath,amssymb,groupedaddress]{revtex4-1}          \usepackage[dvipdfm]{graphicx}% Include figure files     \usepackage{dcolumn}% Align table columns on decimal point     \usepackage{bm}% bold math     \usepackage{epstopdf}     \usepackage{graphicx}     \usepackage{caption}     \usepackage{subcaption}     \begin{document}      A typical figure environment is as follows:               \begin{figure}[h]         \begin{subfigure}{0.24\textwidth}                 \includegraphics[width=\textwidth]{FIG11.eps}                 \label{fig:FIG11}         \end{subfigure}~                \begin{subfigure}{0.24\textwidth}                 \includegraphics[width=\textwidth]{FIG12.eps}                 \label{fig:FIG12}         \end{subfigure}         \caption{Gate control when large magnitude control is allowed. (a) Z-gate control in Lorentzian-like environment. (b) Identity-gate control in Ohmic environment. Here $\epsilon(t)\leq20\omega_{0}$. }         \label{fig: large control}             \end{figure}      The strange thing is that there is a sample "apssamp.tex" in the REVTeX zip file provided by APS. I copy my figure environment and paste it into the sample file and the caption is fully justified. But if I copy a figure environment in the sample and paste it to my own tex file, I always get centered caption. That's why I suspect that the problem should be due to the header.


title: Mac 10.9.4 & MacTeX (Installation of .sty file)

text: I hope you can help. I was a fairly regular user of LaTeX, only for Open University assignments (even attended a TUG course in London!!) but have had about 18 months off and returned with a new platform! Mac! As a previous Windows user, I had set up everything OK (with a little help) - but am now embarking on this through the world of Apple. Previously I was used to TeXworks as the editor and had downloaded a tma.sty file from an OU forum which assisted in the layout tremendously... I had adjusted and added things and eventually re-wrote some of the .sty file to reduce the preamble in my OU assignments. However, porting to Mac has left me somewhat stumped! I have downloaded MacTeX and performed the 'whole' installation. I have booted up TexShop and opened a previously created .tex file. On opening a previous .tex document it opens fine, the PDF partner opens fine, but the minute I press 'Typeset' I get a ! LaTeX Error: File 'OUTMA.sty' not found. I know I need to save my .sty file somewhere... but where? I have a TeX foler under Applications that has; Excalibur-4.0.7 [folder] FixMacTeX2013.pkg LaTeXIT LuaTeX-and-XeTeX [folder] TeX Live Utility TeXShop FixMacTeX2014.pkg BibDesk and 3 x .pdf files And I remember something about refreshing a file name database once this was done (but again, how)?! I'm sure I will be fine once I have it started... HELP! If it helps, I am running TeXShop v. 3.41 and have updated everything I can using TeX Live Thanks in advance - Simon


title: tikz and limits

text: I don't really know how to explain what I want to do other than giving you the code I wrote :               \varinjlim\limits_\cI \left( \begin{tikzpicture}          \matrix (m) [matrix of math nodes,row sep=1em,column sep=1em]{              A & B     \\              C & \null \\          };          \path[-stealth]             (m-1-1) edge node [left]  {} (m-2-1)                     edge node [above] {} (m-1-2);         \end{tikzpicture} \right) = C \coprod\limits_A B      The result I get is : ![enter image description here](http://i.stack.imgur.com/0BtRZ.jpg) I want it to look like what you would expect it to look like i.e. no space under the diagram Any suggestions ?


title: Widow Orphan lstlisting

text: I have a listing of 6 lines. The listing box does not seem to fit on one page (it is on the bottom of the page) so the rest of the box is printed on the next page. There is nothing actually in the box on the next page. How can I avoid this? Can I tell the listing to put at least 3 lines on the next page?


title: Multipage pdf not displaying correctly in Lyx

text: I have a pdf file with multiple images that I want to insert into my Lyx document as individual images. I've managed to successfully do it as described here using the `\includegraphics` method. However, in the Lyx GUI itself, the image that is displayed is either the first or last page, no matter what page I specify. The final output is correct, so this is more a quality of life issue so I can quickly see that I've added the correct page, or need to trim the image. I'm assuming it has something to do with the converter. I'm using Lyx 2.0.6, and this happens on both OSX and Windows. Example: Inserted pdfs not showing correct page in Lyx ![enter image description here](http://i.stack.imgur.com/dlnny.png) But correctly generated pdf file ![enter image description here](http://i.stack.imgur.com/yK0st.png)


title: Gray scale output using pdflatex

text: I use colour diagrams (saved as pdf files) which I include in my LaTeX file. Is there any options in pdflatex to create a gray scale document or a pdf viewer where you can view the document in gray scale? Enabling you to view the document and fix any problems before it gets printed on a non-colour printer.


title: Remove appendices page in ToC

text: i am creating my thesis report in latex.While adding appendices i am getting a page only with a string "Appendices" before Appendix A and Appendix B. The code for the appendix is as follows               \begin{appendices}       \chapter{}        \lhead{Appendix \emph{A}}       \begin{center}       \Large {\textbf{BOOK Dataset}}     \end{center}       \begin{center}       \large{\textbf{Accuracy of POSITIVE class features}}       \end{center}            \begin{table}[h]     \begin{center}       \caption{Accuracy (\%) of unigram features using MI}       \end{center}     \begin{tabular}{|c|c|c|c|c|c|c|}     \hline     \multirow{2}{*}{Feature Length} & \multicolumn{3}{c|}{unigram without threshold} & \multicolumn{3}{c|}{unigram with threshold} \\ \cline{2-7}                                      & C1       & C2      & C3      & C1        & C2       & C3       \\ \hline     200                             & 56             & 70.4         & 60.7        & 56.7            & 70.4          & 55.5         \\ \hline     500                             & 60             & \cellcolor{violet!=40}72.4         & 63          & 61.7            & \cellcolor{violet!=40}72.4          & 65.9         \\ \hline     1000                            & 64.2           & 70.8         & 58.6        & 63.6            & 70.7          & 62.8         \\ \hline     1100                            & 65.8           & 71           & 58.6        & 65.3            & 71.6          & \cellcolor{blue!=50}70.4         \\ \hline     1300                            & 65.1           & 72           & 66.1        & 65.8            & 71.6          & 62           \\ \hline     1400                            & 65.7           & 71.4         & 65.2        & 66.7            & 71.3          & 61.4         \\ \hline     1600                            & \cellcolor{green!=50}66.9           & 70.2         & 66.5        & 67.5            & 70.8          & 62.7         \\ \hline     2000                            & 66.3           & 71.5         & \cellcolor{blue!=50}67.7        & \cellcolor{green!=50}68.7            & 70.1          & 61.8         \\ \hline     \end{tabular}     \end{table}       \chapter{}            \lhead{Appendix \emph{B}}          \begin{center}       \Large {\textbf{MOVIE Dataset}}     \end{center}       \begin{center}       \large{\textbf{Accuracy of POSITIVE class features}}       \end{center}                     \begin{table}[h]      \begin{center}        \caption{Accuracy(\%) unigram features using MI}      \end{center}               \begin{tabular}{|c|c|c|c|c|c|c|}     \hline                                      & \multicolumn{3}{c|}{Accuracy without threshold}                                            & \multicolumn{3}{c|}{Accuracy with threshold}                                               \\ \cline{2-7}      \multirow{-2}{*}{Feature Length} & C1                           & C2                           & C3                           & C1                           & C2                           & C3                           \\ \hline     1300                             & 80.5                         & 81.2                         & 81.5                         & 79.6                         & 81.1                         & 80.9                         \\ \hline     1400                             & 79.5                         & 81.6                         & \cellcolor[HTML]{FFFFC7}81.8 & 78.2                         & 81.4                         & 81.3                         \\ \hline     1500                             & 79.6                         & \cellcolor[HTML]{67FD9A}81.7 & 81.6                         & 79.1                         & 80.9                         & 80.6                         \\ \hline     1600                             & 80                           & 81                           & 81.1                         & 80.4                         & 81.8                         & 80.9                         \\ \hline     1800                             & 79.6                         & 81                           & 80.6                         & 80.5                         & 80.9                         & 80.8                         \\ \hline     1900                             & 79.7                         & 81.4                         & 80.8                         & 80.6                         & 81.6                         & 82.4                         \\ \hline     2000                             & 79.9                         & 81.5                         & 81.3                         & 79.9                         & 82.5                         & 82.6                         \\ \hline     2100                             & 80.2                         & 80.2                         & 80.3                         & 80.4                         & 82.8                         & \cellcolor[HTML]{FFFFC7}83.5 \\ \hline     2300                             & 80.7                         & 80.3                         & 80.5                         & 81.3                         & \cellcolor[HTML]{9AFF99}83.2 & 83.5                         \\ \hline     2400                             & \cellcolor[HTML]{FFCCC9}80.8 & 80.2                         & 79.9                         & \cellcolor[HTML]{FFCCC9}81.4 & 83.1                         & 82.8                         \\ \hline     2500                             & 80.5                         & 80.4                         & 79.8                         & 81                           & 83.1                         & 83.1                         \\ \hline     \end{tabular}     \end{table}               \end{appendices}     \end{document}      The main file calling this appendix chapter as follows               \input{./Chapters/main_appendix.tex}      My problems are : 1.Before the chapter "Appendix A" a page with a word "Appendices" is displaying i want to remove this page. 2.Also in Table of Contents its showing like   * Appendices .................. 45    * Appendix A ...................... 46   * Appendix B ...................... 47 i want to display it with Appendix A and Appendix B. so that remove Appendices ...45 any idea to solve my problems


title: Trying to use Luatex: luatex.fmt not found, etex.ini not found

text: I want to disclaim that I am very inexperienced with latex. I am using Texmaker 4.3 with Miktex 2.9 on Windows 7. I am writing an article (let's call it "test") which includes several packages to generate figures. One of them is `pgfmolbio`. When doing a Quickbuild , I am getting a Latex error that the environment `pmbdomains` is not defined. I understand from the documentation of this package that I have to run `luatex` on my file in order to get it to work. Now, when running `luatex test` it tells me that luatex.fmt was not found. However, I find luatex on the dropdown list on top in texworks. Trying to use it there I get a similar error: `I can't find the format file 'miktex- luatex.fmt'!`. From another answer with the same problem I learned that I should try to to run `luatex -ini luatex.ini`. When doing so, the Miktex package manager starts. The next error I get is `I can't find etex.ini`. I couldn't find any further solution and would be happy about help. **Edit:** here is an example that produces the said error, taken from the `pgfmolbio` Package Manual:               \documentclass{article}     \usepackage[domains]{pgfmolbio}     \begin{document}     \begin{pmbdomains}[name=\TeX ase]{200}     \addfeature{disulfide}{40}{129}     \addfeature{disulfide}{53}{65}     \addfeature[description=Domain 1]{domain}{30}{80}     \addfeature[description=Domain 2]{domain}{93}{163}     \addfeature{domain}{168}{196}     \end{pmbdomains}     \end{document}      **Edit 2:** Log file of Lualatex (I redacted the path of the file):               This is LuaTeX, Version beta-0.70.2-2012060719 (MiKTeX 2.9 64-bit)  (format=lualatex 2014.9.10)  11 SEP 2014 14:37     **test2     ("C:/.../test2.tex"     LaTeX2e <2011/06/27>     LuaTeX adaptation of babel <v3.8m-luatex-1.5> and hyphenation patterns for engl     ish, loaded.     ("C:/Program Files/MiKTeX 2.9/tex/latex/base/article.cls"     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     ("C:/Program Files/MiKTeX 2.9/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     )     ("C:/Program Files/MiKTeX 2.9/tex/lualatex/pgfmolbio/pgfmolbio.sty"     Package: pgfmolbio 2013/08/01 v0.21 Molecular biology graphs with TikZ          ("C:/Program Files/MiKTeX 2.9/tex/generic/oberdiek/ifluatex.sty"     Package: ifluatex 2010/03/01 v1.3 Provides the ifluatex switch (HO)     Package ifluatex Info: LuaTeX detected.     )     ("C:/Program Files/MiKTeX 2.9/tex/luatex/luatexbase/luatexbase-modutils.sty"     Package: luatexbase-modutils 2010/10/10 v0.3 Module utilities for LuaTeX          ("C:/Program Files/MiKTeX 2.9/tex/luatex/luatexbase/luatexbase-loader.sty"     Package: luatexbase-loader 2010/10/10 v0.3 Lua module loader for LuaTeX          ("C:/Program Files/MiKTeX 2.9/tex/luatex/luatexbase/luatexbase-compat.sty"     Package: luatexbase-compat 2010/10/10 v0.3 Compatibility tools for LuaTeX     )     (C:/Program Files/MiKTeX 2.9/tex/luatex/luatexbase/luatexbase.loader.lua))     (C:/Program Files/MiKTeX 2.9/tex/luatex/luatexbase/modutils.lua))     (C:/Program Files/MiKTeX 2.9/tex/luatex/lualibs/lualibs.lua)     Lua module: lualibs 2011/01/20 0.96 Lua additional functions.          (C:/Program Files/MiKTeX 2.9/tex/luatex/lualibs/lualibs-string.lua)     (C:/Program Files/MiKTeX 2.9/tex/luatex/lualibs/lualibs-lpeg.lua)     (C:/Program Files/MiKTeX 2.9/tex/luatex/lualibs/lualibs-boolean.lua)     (C:/Program Files/MiKTeX 2.9/tex/luatex/lualibs/lualibs-number.lua)     (C:/Program Files/MiKTeX 2.9/tex/luatex/lualibs/lualibs-math.lua)     (C:/Program Files/MiKTeX 2.9/tex/luatex/lualibs/lualibs-table.lua)     (C:/Program Files/MiKTeX 2.9/tex/luatex/lualibs/lualibs-aux.lua)     (C:/Program Files/MiKTeX 2.9/tex/luatex/lualibs/lualibs-io.lua)     (C:/Program Files/MiKTeX 2.9/tex/luatex/lualibs/lualibs-os.lua)     (C:/Program Files/MiKTeX 2.9/tex/luatex/lualibs/lualibs-file.lua)     (C:/Program Files/MiKTeX 2.9/tex/luatex/lualibs/lualibs-md5.lua)     (C:/Program Files/MiKTeX 2.9/tex/luatex/lualibs/lualibs-dir.lua)     (C:/Program Files/MiKTeX 2.9/tex/luatex/lualibs/lualibs-unicode.lua)     (C:/Program Files/MiKTeX 2.9/tex/luatex/lualibs/lualibs-utils.lua)     (C:/Program Files/MiKTeX 2.9/tex/luatex/lualibs/lualibs-dimen.lua)     (C:/Program Files/MiKTeX 2.9/tex/luatex/lualibs/lualibs-url.lua)     (C:/Program Files/MiKTeX 2.9/tex/luatex/lualibs/lualibs-set.lua)     (C:/Program Files/MiKTeX 2.9/tex/lualatex/pgfmolbio/pgfmolbio.lua)     Lua module: pgfmolbio 2012/10/01 0.2 Molecular biology graphs wit LuaLaTeX          ("C:/Program Files/MiKTeX 2.9/tex/latex/xcolor/xcolor.sty"     Package: xcolor 2007/01/21 v2.11 LaTeX color extensions (UK)          ("C:/Program Files/MiKTeX 2.9/tex/latex/00miktex/color.cfg"     File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive     )     Package xcolor Info: Driver file: pdftex.def on input line 225.          ("C:/Program Files/MiKTeX 2.9/tex/latex/pdftex-def/pdftex.def"     File: pdftex.def 2011/05/27 v0.06d Graphics/color for pdfTeX          ("C:/Program Files/MiKTeX 2.9/tex/generic/oberdiek/infwarerr.sty"     Package: infwarerr 2010/04/08 v1.3 Providing info/warning/error messages (HO)     )     ("C:/Program Files/MiKTeX 2.9/tex/generic/oberdiek/ltxcmds.sty"     Package: ltxcmds 2011/11/09 v1.22 LaTeX kernel commands for general use (HO)     )     ("C:/Program Files/MiKTeX 2.9/tex/generic/oberdiek/pdftexcmds.sty"     Package: pdftexcmds 2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO     )          ("C:/Program Files/MiKTeX 2.9/tex/generic/oberdiek/ifpdf.sty"     Package: ifpdf 2011/01/30 v2.3 Provides the ifpdf switch (HO)     Package ifpdf Info: pdfTeX in PDF mode is detected.     )     Package pdftexcmds Info: \pdf@primitive is available.     Package pdftexcmds Info: \pdf@ifprimitive is available.     Package pdftexcmds Info: \pdfdraftmode found.          ("C:/Program Files/MiKTeX 2.9/tex/generic/oberdiek/luatex-loader.sty"     Package: luatex-loader 2010/03/09 v0.4 Lua module loader (HO)          (C:/Program Files/MiKTeX 2.9/scripts/oberdiek/oberdiek.luatex.lua))     (C:/Program Files/MiKTeX 2.9/scripts/oberdiek/pdftexcmds.lua)     \pdftexcmds@toks=\toks14     )     \Gread@gobject=\count87     )     Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1337.     Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1341.     Package xcolor Info: Model `RGB' extended on input line 1353.     Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1355.     Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1356.     Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1357.     Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1358.     Package xcolor Info: Model `Gray' substituted by `gray' on input line 1359.     Package xcolor Info: Model `wave' substituted by `hsb' on input line 1360.          ("C:/Program Files/MiKTeX 2.9/tex/latex/graphics/dvipsnam.def"     File: dvipsnam.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)     )     ("C:/Program Files/MiKTeX 2.9/tex/latex/xcolor/svgnam.def"     File: svgnam.def 2007/01/21 v2.11 Predefined colors according to SVG 1.1 (UK)     ))     ("C:/Program Files/MiKTeX 2.9/tex/latex/pgf/frontendlayer/tikz.sty"     ("C:/Program Files/MiKTeX 2.9/tex/latex/pgf/basiclayer/pgf.sty"     ("C:/Program Files/MiKTeX 2.9/tex/latex/pgf/utilities/pgfrcs.sty"     ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/utilities/pgfutil-common.tex"     \pgfutil@everybye=\toks15     )     ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/utilities/pgfutil-latex.def"     \pgfutil@abb=\box26          ("C:/Program Files/MiKTeX 2.9/tex/latex/ms/everyshi.sty"     Package: everyshi 2001/05/15 v3.00 EveryShipout Package (MS)     ))     ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/utilities/pgfrcs.code.tex"     Package: pgfrcs 2010/10/25 v2.10 (rcs-revision 1.24)     ))     Package: pgf 2008/01/15 v2.10 (rcs-revision 1.12)          ("C:/Program Files/MiKTeX 2.9/tex/latex/pgf/basiclayer/pgfcore.sty"     ("C:/Program Files/MiKTeX 2.9/tex/latex/graphics/graphicx.sty"     Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)          ("C:/Program Files/MiKTeX 2.9/tex/latex/graphics/keyval.sty"     Package: keyval 1999/03/16 v1.13 key=value parser (DPC)     \KV@toks@=\toks16     )     ("C:/Program Files/MiKTeX 2.9/tex/latex/graphics/graphics.sty"     Package: graphics 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)          ("C:/Program Files/MiKTeX 2.9/tex/latex/graphics/trig.sty"     Package: trig 1999/03/16 v1.09 sin cos tan (DPC)     )     ("C:/Program Files/MiKTeX 2.9/tex/latex/00miktex/graphics.cfg"     File: graphics.cfg 2007/01/18 v1.5 graphics configuration of teTeX/TeXLive     )     Package graphics Info: Driver file: pdftex.def on input line 91.     )     \Gin@req@height=\dimen103     \Gin@req@width=\dimen104     )     ("C:/Program Files/MiKTeX 2.9/tex/latex/pgf/systemlayer/pgfsys.sty"     ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/systemlayer/pgfsys.code.tex"     Package: pgfsys 2010/06/30 v2.10 (rcs-revision 1.37)          ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/utilities/pgfkeys.code.tex"     \pgfkeys@pathtoks=\toks17     \pgfkeys@temptoks=\toks18          ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/utilities/pgfkeysfiltered.code.te     x"     \pgfkeys@tmptoks=\toks19     ))     \pgf@x=\dimen105     \pgf@y=\dimen106     \pgf@xa=\dimen107     \pgf@ya=\dimen108     \pgf@xb=\dimen109     \pgf@yb=\dimen110     \pgf@xc=\dimen111     \pgf@yc=\dimen112     \w@pgf@writea=\write3     \r@pgf@reada=\read1     \c@pgf@counta=\count88     \c@pgf@countb=\count89     \c@pgf@countc=\count90     \c@pgf@countd=\count91      ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/systemlayer/pgf.cfg"     File: pgf.cfg 2008/05/14  (rcs-revision 1.7)     )     Package pgfsys Info: Driver file for pgf: pgfsys-pdftex.def on input line 900.          ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/systemlayer/pgfsys-pdftex.def"     File: pgfsys-pdftex.def 2009/05/22  (rcs-revision 1.26)          ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/systemlayer/pgfsys-common-pdf.def     "     File: pgfsys-common-pdf.def 2008/05/19  (rcs-revision 1.10)     )))     ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/systemlayer/pgfsyssoftpath.code.t     ex"     File: pgfsyssoftpath.code.tex 2008/07/18  (rcs-revision 1.7)     \pgfsyssoftpath@smallbuffer@items=\count92     \pgfsyssoftpath@bigbuffer@items=\count93     )     ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/systemlayer/pgfsysprotocol.code.t     ex"     File: pgfsysprotocol.code.tex 2006/10/16  (rcs-revision 1.4)     )) ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/basiclayer/pgfcore.code.tex"     Package: pgfcore 2010/04/11 v2.10 (rcs-revision 1.7)      ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/math/pgfmath.code.tex"     ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/math/pgfmathcalc.code.tex"     ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/math/pgfmathutil.code.tex")     ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/math/pgfmathparser.code.tex"     \pgfmath@dimen=\dimen113     \pgfmath@count=\count94     \pgfmath@box=\box27     \pgfmath@toks=\toks20     \pgfmath@stack@operand=\toks21     \pgfmath@stack@operation=\toks22     )     ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/math/pgfmathfunctions.code.tex"     ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/math/pgfmathfunctions.basic.code.     tex")     ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/math/pgfmathfunctions.trigonometr     ic.code.tex")     ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/math/pgfmathfunctions.random.code     .tex")     ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/math/pgfmathfunctions.comparison.     code.tex")     ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/math/pgfmathfunctions.base.code.t     ex")     ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/math/pgfmathfunctions.round.code.     tex")     ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/math/pgfmathfunctions.misc.code.t     ex"))) ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/math/pgfmathfloat.code.tex     "     \c@pgfmathroundto@lastzeros=\count95     ))     ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/basiclayer/pgfcorepoints.code.tex     "     File: pgfcorepoints.code.tex 2010/04/09  (rcs-revision 1.20)     \pgf@picminx=\dimen114     \pgf@picmaxx=\dimen115     \pgf@picminy=\dimen116     \pgf@picmaxy=\dimen117     \pgf@pathminx=\dimen118     \pgf@pathmaxx=\dimen119     \pgf@pathminy=\dimen120     \pgf@pathmaxy=\dimen121     \pgf@xx=\dimen122     \pgf@xy=\dimen123     \pgf@yx=\dimen124     \pgf@yy=\dimen125     \pgf@zx=\dimen126     \pgf@zy=\dimen127     )     ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/basiclayer/pgfcorepathconstruct.c     ode.tex"     File: pgfcorepathconstruct.code.tex 2010/08/03  (rcs-revision 1.24)     \pgf@path@lastx=\dimen128     \pgf@path@lasty=\dimen129     )     ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/basiclayer/pgfcorepathusage.code.     tex"     File: pgfcorepathusage.code.tex 2008/04/22  (rcs-revision 1.12)     \pgf@shorten@end@additional=\dimen130     \pgf@shorten@start@additional=\dimen131     )     ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/basiclayer/pgfcorescopes.code.tex     "     File: pgfcorescopes.code.tex 2010/09/08  (rcs-revision 1.34)     \pgfpic=\box28     \pgf@hbox=\box29     \pgf@layerbox@main=\box30     \pgf@picture@serial@count=\count96     )     ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/basiclayer/pgfcoregraphicstate.co     de.tex"     File: pgfcoregraphicstate.code.tex 2008/04/22  (rcs-revision 1.9)     \pgflinewidth=\dimen132     )     ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/basiclayer/pgfcoretransformations     .code.tex"     File: pgfcoretransformations.code.tex 2009/06/10  (rcs-revision 1.11)     \pgf@pt@x=\dimen133     \pgf@pt@y=\dimen134     \pgf@pt@temp=\dimen135     )     ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/basiclayer/pgfcorequick.code.tex"     File: pgfcorequick.code.tex 2008/10/09  (rcs-revision 1.3)     )     ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/basiclayer/pgfcoreobjects.code.te     x"     File: pgfcoreobjects.code.tex 2006/10/11  (rcs-revision 1.2)     )     ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/basiclayer/pgfcorepathprocessing.     code.tex"     File: pgfcorepathprocessing.code.tex 2008/10/09  (rcs-revision 1.8)     )     ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/basiclayer/pgfcorearrows.code.tex     "     File: pgfcorearrows.code.tex 2008/04/23  (rcs-revision 1.11)     )     ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/basiclayer/pgfcoreshade.code.tex"     File: pgfcoreshade.code.tex 2008/11/23  (rcs-revision 1.13)     \pgf@max=\dimen136     \pgf@sys@shading@range@num=\count97     ) ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/basiclayer/pgfcoreimage.code.te     x"     File: pgfcoreimage.code.tex 2010/03/25  (rcs-revision 1.16)          ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/basiclayer/pgfcoreexternal.code.t     ex"     File: pgfcoreexternal.code.tex 2010/09/01  (rcs-revision 1.17)     \pgfexternal@startupbox=\box31     ))     ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/basiclayer/pgfcorelayers.code.tex     "     File: pgfcorelayers.code.tex 2010/08/27  (rcs-revision 1.2)     )     ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/basiclayer/pgfcoretransparency.co     de.tex"     File: pgfcoretransparency.code.tex 2008/01/17  (rcs-revision 1.2)     )     ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/basiclayer/pgfcorepatterns.code.t     ex"     File: pgfcorepatterns.code.tex 2009/07/02  (rcs-revision 1.3)     )))     ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/modules/pgfmoduleshapes.code.tex"     File: pgfmoduleshapes.code.tex 2010/09/09  (rcs-revision 1.13)     \pgfnodeparttextbox=\box32     ) ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/modules/pgfmoduleplot.code.tex"     File: pgfmoduleplot.code.tex 2010/10/22  (rcs-revision 1.8)     )     ("C:/Program Files/MiKTeX 2.9/tex/latex/pgf/compatibility/pgfcomp-version-0-65.     sty"     Package: pgfcomp-version-0-65 2007/07/03 v2.10 (rcs-revision 1.7)     \pgf@nodesepstart=\dimen137     \pgf@nodesepend=\dimen138     )     ("C:/Program Files/MiKTeX 2.9/tex/latex/pgf/compatibility/pgfcomp-version-1-18.     sty"     Package: pgfcomp-version-1-18 2007/07/23 v2.10 (rcs-revision 1.1)     )) ("C:/Program Files/MiKTeX 2.9/tex/latex/pgf/utilities/pgffor.sty"     ("C:/Program Files/MiKTeX 2.9/tex/latex/pgf/utilities/pgfkeys.sty"     ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/utilities/pgfkeys.code.tex"))     ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/utilities/pgffor.code.tex"     Package: pgffor 2010/03/23 v2.10 (rcs-revision 1.18)     \pgffor@iter=\dimen139     \pgffor@skip=\dimen140     \pgffor@stack=\toks23     \pgffor@toks=\toks24     ))     ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/frontendlayer/tikz/tikz.code.tex"     Package: tikz 2010/10/13 v2.10 (rcs-revision 1.76)          ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/libraries/pgflibraryplothandlers.     code.tex"     File: pgflibraryplothandlers.code.tex 2010/05/31 v2.10 (rcs-revision 1.15)     \pgf@plot@mark@count=\count98     \pgfplotmarksize=\dimen141     )     \tikz@lastx=\dimen142     \tikz@lasty=\dimen143     \tikz@lastxsaved=\dimen144     \tikz@lastysaved=\dimen145     \tikzleveldistance=\dimen146     \tikzsiblingdistance=\dimen147     \tikz@figbox=\box33     \tikz@tempbox=\box34     \tikztreelevel=\count99     \tikznumberofchildren=\count100     \tikznumberofcurrentchild=\count101     \tikz@fig@count=\count102          ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/modules/pgfmodulematrix.code.tex"     File: pgfmodulematrix.code.tex 2010/08/24  (rcs-revision 1.4)     \pgfmatrixcurrentrow=\count103     \pgfmatrixcurrentcolumn=\count104     \pgf@matrix@numberofcolumns=\count105     )     \tikz@expandcount=\count106          ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/frontendlayer/tikz/libraries/tikz     librarytopaths.code.tex"     File: tikzlibrarytopaths.code.tex 2008/06/17 v2.10 (rcs-revision 1.2)     )))     ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/frontendlayer/tikz/libraries/tikz     librarypositioning.code.tex"     File: tikzlibrarypositioning.code.tex 2008/10/06 v2.10 (rcs-revision 1.7)     )     ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/frontendlayer/tikz/libraries/tikz     librarysvg.path.code.tex"     File: tikzlibrarysvg.path.code.tex 2009/01/24 v2.10 (rcs-revision 1.1)          ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/libraries/pgflibrarysvg.path.code     .tex"     File: pgflibrarysvg.path.code.tex 2009/01/24 v2.10 (rcs-revision 1.6)          ("C:/Program Files/MiKTeX 2.9/tex/generic/pgf/modules/pgfmoduleparser.code.tex"     File: pgfmoduleparser.code.tex 2009/01/12 v2.10 (rcs-revision 1.1)     )     \pgf@lib@svg@last@x=\dimen148     \pgf@lib@svg@last@y=\dimen149     \pgf@lib@svg@last@c@x=\dimen150     \pgf@lib@svg@last@c@y=\dimen151     \pgf@lib@svg@count=\count107     \pgf@lib@svg@max@num=\count108     ))     \@pmb@toksa=\toks25     \@pmb@toksb=\toks26      ("C:/Program Files/MiKTeX 2.9/tex/lualatex/pgfmolbio/pgfmolbio.domains.tex"     File: pgfmolbio.domains.tex 2013/08/01 v0.21 Protein domains     File: pgfmolbio.domains.tex 2012/10/01 v0.2 Protein Domains     (C:/Program Files/MiKTeX 2.9/tex/lualatex/pgfmolbio/pgfmolbio.domains.lua)     Lua module: pgfmolbio.domains 2012/10/01 0.2 Domain graphs     \pmb@magnifiedsequence@width=\skip43     ))     ("C:/.../test2.aux")     LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 4.     LaTeX Font Info:    ... okay on input line 4.     LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 4.     LaTeX Font Info:    ... okay on input line 4.     LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 4.     LaTeX Font Info:    ... okay on input line 4.     LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 4.     LaTeX Font Info:    ... okay on input line 4.     LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 4.     LaTeX Font Info:    ... okay on input line 4.     LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 4.     LaTeX Font Info:    ... okay on input line 4.          ("C:/Program Files/MiKTeX 2.9/tex/context/base/supp-pdf.mkii"     [Loading MPS to PDF converter (version 2006.09.02).]     \scratchcounter=\count109     \scratchdimen=\dimen152     \scratchbox=\box35     \nofMPsegments=\count110     \nofMParguments=\count111     \everyMPshowfont=\toks27     \MPscratchCnt=\count112     \MPscratchDim=\dimen153     \MPnumerator=\count113     \makeMPintoPDFobject=\count114     \everyMPtoPDFconversion=\toks28     ) ABD: EveryShipout initializing macros     ! LuaTeX error ...iles/MiKTeX 2.9/tex/lualatex/pgfmolbio/pgfmolbio.lua:54: atte     mpt to call field 'pack' (a nil value)     stack traceback:         ...iles/MiKTeX 2.9/tex/lualatex/pgfmolbio/pgfmolbio.lua:54: in function 'getRa     nge'         ...TeX 2.9/tex/lualatex/pgfmolbio/pgfmolbio.domains.lua:407: in function '?'         ...TeX 2.9/tex/lualatex/pgfmolbio/pgfmolbio.domains.lua:521: in function 'setP     arameters'         <\directlua >:1: in main chunk.     \endpmbdomains ...Domains() \fi pmbProtein = nil }                                                       \ifpmb@dom@tikzpicture \el...     l.11 \end{pmbdomains}          ? x               Here is how much of LuaTeX's memory you used:      10245 strings out of 495011      100000,266212 words of node,token memory allocated 342 words of node memory still in use:         nodes        avail lists: 2:18,7:1,9:3      13365 multiletter control sequences out of 65536+200000      15 fonts using 602239 bytes      63i,1n,57p,447b,239s stack positions out of 5000i,500n,10000p,200000b,50000s     No pages of output.          PDF statistics: 3 PDF objects out of 1000 (max. 8388607)      0 named destinations out of 1000 (max. 131072)      1 words of extra memory for PDF output out of 10000 (max. 10000000)


title: How to force lower case in small caps section titles?

text: I want my section titles to appear in lower case small caps. I tried to define a way to force lower case, but it doesn't work.               \\documentclass[12pt]{article}     \\usepackage{textcase}     \\newcommand\\textlcsc[1]{\\scshape{\\MakeLowercase{#1}}}          \\usepackage{titlesec}     \\titleformat*{\\section}{\\normalfont\\fontsize{40}{50}\\bfseries\\sffamily\\color{pinterestred}}     \\titleformat*{\\subsection}{\\normalfont\\Large \\textlcsc\\rmfamily\\color{electricblue}}     \\titleformat*{\\subsubsection}{\\normalfont\\large\\textlcsc\\rmfamily\\color{pinterestred}}     \\titleformat*{\\paragraph}{\\normalfont\\normalsize\\textlcsc\\rmfamily\\color{electricblue}}     \\titleformat*{\\subparagraph}{\\normalfont\\normalsize\\textlcsc\\rmfamily\\color{electricblue}}      Any thoughts?


title: Just want to know how to run this on texmaker?

text: \documentclass{article}     \usepackage{arabxetex}     \newfontfamily\arabicfont[Script=Arabic,Scale=1.0]{Scheherazade}     \newfontfamily\urdufont[Script=Arabic,Scale=1.1]{Code2000}     \begin{urdu}[novoc]     ,ham `i^sq kE mArO.n kA itnA ,hI fasAna,h ,hae\\     \end{urdu}      When i run this on texmaker. It gives the error arabxetex.sty not found. I dont know how to run xetex or xelatex on texmaker. I have tried a few things like changing latex to xelatex in configuration of texmaker but it didn't do any good. So if anyone can tell me about how to use xetex on texmaker do tell me.


title: Problem with color tables when there are nested tabulars

text: Color tables work great when using within a single tabular environment. However, when using it within nested tabular environments, a rowcolor command spans the whole nested table instead of a single row within the nexted table. This is show in the following sample file               \documentclass{report}     \usepackage{colortbl}          \begin{document}          \begin{center}     \small\sf     \begin{tabular}[t]{|c|c|c|c|}\hline     \rowcolor[gray]{.8} EmpID & FirstName & LastName & Title \\\hline     e1 & John & Smith & Mr. \\     e2 & Mary & Heart & Mrs. \\     e3 & Juan & Guerra & Mr. \\\hline     \end{tabular}     \hspace{3mm}     \begin{tabular}[t]{|c|c|c|}\hline      \rowcolor[gray]{.8} ProductKey & TimeKey & Quantity \\\hline     p2 & t2 & 100 \\     p3 & t3 & 100 \\     p4 & t4 & 100 \\     p5 & t5 & 100 \\     p6 & t6 & 100 \\\hline     \end{tabular}     \end{center}           \begin{center}     \small\sf     \begin{tabular}{ccc}     \begin{tabular}[t]{|c|c|c|c|}\hline     \rowcolor[gray]{.8} EmpID & FirstName & LastName & Title \\\hline     e1 & John & Smith & Mr. \\     e2 & Mary & Heart & Mrs. \\     e3 & Juan & Guerra & Mr. \\\hline     \end{tabular}     & &     \begin{tabular}[t]{|c|c|c|}\hline      \rowcolor[gray]{.8} ProductKey & TimeKey & Quantity \\\hline     p2 & t2 & 100 \\     p3 & t3 & 100 \\     p4 & t4 & 100 \\     p5 & t5 & 100 \\     p6 & t6 & 100 \\\hline     \end{tabular}     \end{tabular}     \end{center}           \end{document}      When I compile it with pdflatex using MikTeX I obtain the following output ![problem with rowcolor in nested tabular](http://i.stack.imgur.com/QNX2B.png)


title: TexShop quits on trying to close files

text: When I try to close a file in TexShop, TexShop quits about 90% of the time. This happens no matter how I try to close the file. E.g. close the .pdf file and the console first, close the .tex file first, compile before closing, trash the Aux files. When I reopen TexShop, the file I was trying to close is still there, so effectively I am unable to close any open files. The error message is very long and I am not a sophisticated user so I don't know what to quote. But perhaps this is relevant: Exception Type: EXC_BAD_ACCESS (SIGSEGV)


title: ifthen: Replacing a single character in a fixed environment with a longer string

text: We use a custom command to highlight system properties:               \newcommand{\propDesc}[2]{     \fcolorbox{white}{propbg}{     \begin{minipage}[c]{\textwidth}     \vspace{1ex}     \textcolor{title}{#1}     \\     #2      \vspace{1ex}     \end{minipage}     }     \\     }      The title (#1) is highlighted in blue (emphasized). The description (#2) is plain text. Most of these properties include a `_` which is manually replaced by a `\_`. So, a some`_`property becomes some`\_`property in order to be compiled. This is pretty annoying. My goal is to find a way that allows my to replace all `_` automatically whithout having to change the existing `\_`. Thus, i simply use copy&paste to add a new property. Something like if `_` then `\_`, otherwise do nothin or simply `\_`. If been working with some basic ifthen commands. However, I am not able to find/ program a command that will get the job done. I need a command that will replace all `_` \propDesc command without beeing disturbed by the existing `\_`


title: Problems with converting ieeetran to lncs

text: I have to convert my paper from IEEEtran format to lncs and it's my frist experience with this format. For this reason, I downloaded llncs2e.zip package and use lncs instead of ieeetran in the tex file and change the title section. The first question is the margins when I use this class is different from the margins in the instruction file, I mean large margins. also, it leaves the first page blank and just put the emails on the top. In addition, there are other problems different from instruction, for example, the captions do not follow the instruction. shall i correct them manually.               \begin{document}          \title{Congestion Control for Vehicular Environments by Adjusting IEEE 802.11 Contention Window Size}          \author{Ali Balador \inst{1}, Carlos T. Calafate \inst{1}, Juan-Carlos Cano \inst{1} \and Pietro Manzoni\inst{1}}     \institute{Universitat Politecnica de Valencia\\Camino de Vera, s/n, 46022 Valencia, Spain}     \email{alba6@upv.es, {calafate, jucano, pmanzoni}@disca.upv.es}     \maketitle


title: How to clarify and enliven a dense table

text: I have a table that is quite dense: ![enter image description here](http://i.stack.imgur.com/OIr9l.png) Any ideas how could make this easier to read, specifically in terms of distinguishing between different rows and columns? Was thinking Excel-style cell shading but not sure if this is possible let alone a good idea in LaTeX. The code to generate the table is given below.               \begin{table}[htbp]     \caption{Proportion of trips (T), distance (D) and energy (E)     used by the three most     popular forms of transport in Yorkshire and the Humber.}     \begin{tabular}{lrrr|rrr|rrr|rrr}     \toprule     Dis. & \multicolumn{ 3}{c}{Car*} & \multicolumn{ 3}{c}{Walk} & \multicolumn{ 3}{c}{Bus} & \multicolumn{ 3}{c}{All modes} \\      (km) & \multicolumn{1}{l}{T} & \multicolumn{1}{l}{D} & \multicolumn{1}{l}{E} & \multicolumn{1}{l}{T} & \multicolumn{1}{l}{D} & \multicolumn{1}{l}{E} & \multicolumn{1}{l}{T} &     \multicolumn{1}{l}{D} & \multicolumn{1}{l}{E} & \multicolumn{1}{l}{T} & \multicolumn{1}{l}{D} & \multicolumn{1}{l}{E} \\ \midrule     0-2 & 1.2 & 0.1 & 0.2 & 3.5 & 0.4 & 0.0 & 0.2 & 0.0 & 0.0 & 16.8 & 0.6 & 0.2 \\     2-5 & 12.8 & 3.8 & 4.9 & 5.9 & 1.4 & 0.1 & 4.8 & 1.5 & 0.5 & 28.3 & 8.1 & 5.6 \\     5-10 & 15.5 & 10.4 & 13.4 & 0.4 & 0.3 & 0.0 & 3.8 & 2.5 & 0.9 & 23.4 & 15.7 & 14.6 \\     10-20 & 14.0 & 17.3 & 22.2 & 0.7 & 0.8 & 0.0 & 0.9 & 1.1 & 0.4 & 17.7 & 21.7 & 23.0 \\     20-50 & 7.9 & 21.1 & 27.0 & 0.0 & 0.0 & 0.0 & 0.3 & 0.8 & 0.3 & 10.0 & 26.5 & 27.7 \\     50+ & 3.0 & 22.3 & 28.6 & 0.0 & 0.0 & 0.0 & 0.0 & 0.0 & 0.0 & 3.8 & 27.5 & 28.8 \\     All & 54.6 & 75.0 & 96.4 & 10.6 & 2.9 & 0.2 & 10.1 & 5.9 & 2.1 & 100 & 100 & 100 \\ \bottomrule     \end{tabular}     \label{t:props}          {\footnotesize *Excludes car passengers}     \end{table}


title: How to avoid p. after pp. in biblatex?

text: Can anyone tell me how to avoid mentioning both the pp. and the p. in footnote citing of an article? I kinda find it ugly and redundant. Here is what I mean: > 18J.R.R. Tolkien. “On Fairy-Stories”. In: The Monsters and the Critics and > Other Essays. Ed. by Christopher Tolkien. London: George Allen and Unwin, > 1983, pp. 109–161, p. 141. In this case, I need to mention p. 141, but I wish to remove pp. 109–161. I don't want to have pp. omitted in all citations, but only when a specific page is mentioned. I'm using the following:               \usepackage[bibstyle=verbose,citestyle=verbose-trad3,autocite=footnote,backend=bibtex,backref=true]{biblatex}


title: nested lists - typeset only top n levels

text: I am writing an outline and have a lot of nested `enumitem` lists. Is there a way to automatically suppress output for higher list levels? e.g. In the following:               \begin{enumerate}[label=\Roman*.]     \item First point concisely.       \begin{enumerate}[label=\alph*.]       \item First point in elaboration.         \begin{enumerate}[label=\arabic*.]         \item Specific details...      How do I print a concise version of my outline by printing only the first- level `\items` ?


title: Column break and beginning two new columns on same page

text: I am new to LaTeX, so please bear with me if my question does not meet the requirements, or if the solution is obvious. I am creating a document with two colums, and after my text, I want some kind of break, so my references begin in the left column. So to speak, I want a _new page_ , just beginning at the same page as the text. I hope it makes sense. I would prefer if I could do it without any additional packages, but please let me know if I have to install one to make it work. This is my code:               \documentclass[11pt,twoside,twocolumn,a4paper]{article}      \usepackage{natbib}           \begin{document}          Bla bla           \newpage          Bla Bla          \bibliographystyle{plain}     \bibliography{/Users/Nikolaj/Documents/Samf/library}          \end{document}


title: How can I mix itemize and tabular environments?

text: I have the following list:               \begin{itemize}         \item És associativa:$\qquad(x+y)+z=x+(y+z)$         \item És commutativa:$\qquad x+y=y+x$         \item Té element neutre:$\qquad\exists 0\in\K : 0+x=x+0=x$         \item Té element invers:$\qquad\forall x\in\K\;\exists(-x)\in\K : x+(-x)=(-x)+x=0$     \end{itemize}      But I want to align that like               \begin{tabular}{ll}         És associativa:&$\quad(x+y)+z=x+(y+z)$\\         És commutativa:&$\quad x+y=y+x$\\         Té element neutre:&$\quad\exists 0\in\K : 0+x=x+0=x$\\         Té element invers:&$\quad\forall x\in\K\;\exists(-x)\in\K : x+(-x)=(-x)+x=0$\\     \end{tabular}      How can I "mix" them?


title: Journal style requires \@authors in uppercase

text: We are submitting an article to a journal which requires a camera-ready manuscript. The format requires that the author block needs to be uppercase and the journal provides no style file. So we're are trying to develop our own `.cls` file and are having difficulties. The primary issue involves the inclusion of the `\footnote` or `\thanks` commands typically found in the preamble's `\author` command (for example, `\author{Arthur Pewtie \thanks{Chartered Accountancy Firm}}`). Using `\MakeUppercase{\@author}` will cause errors like                Use of \@xfootnotemark doesn't match its definition      This can be avoided by hacking a `\protect` into the `\author` definition (`\author{Arthur Pewtie \protect\thanks{Chartered Accountancy Firm}}`) but then the `\MakeUppercase` in the `.cls` will uppercase the entire footnote. We looked at `authblk` to help, but the closest that it can do is format the author block with small caps. Any suggestions will be very much appreciated. We're looking, really, on solving this within the `.cls` file, rather than having authors provide a hack of the article fields within their `.tex` document.


title: How to keep table in the chapter title page

text: In my thesis I have two chapters at the beginning, list of abbreviations and list of symbols, that consist only of a table. Unfortunately while converting to pdf LyX puts the tables on the next page, while I would like them to start immediately under the title chapter. Is there a way to stop LyX from putting tables on a clear page after chapter title? Working example:               \chapter*{List of abbreviations}          \newcommand{\ra}[1]{\renewcommand{\arraystretch}{#1}}          \ra{1.3}          \begin{table}     \begin{tabular}{@{}ll@{}}\midrule     Abbreviation & Meaning \\     \midrule          AFM & atomic force microscopy\\     CM & crosslinking monomer\\          \end{tabular}     \end{table}               \chapter*{List of symbols}          \begin{table}     \begin{tabular}{@{}ll@{}}\midrule     Symbol & Meaning \\     \midrule          CPE & Constant phase element \\     W & Warburg impedance\\          \end{tabular}     \end{table}          \chapter*{}     \end{document}      and lines from the document that might provide you with some information:               \documentclass[oneside,american,english]{book}     \usepackage[LGR,T1]{fontenc}     \usepackage[latin9]{inputenc}     \setcounter{secnumdepth}{3}     \setcounter{tocdepth}{3}     \usepackage{subscript}          \makeatletter          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.     \DeclareRobustCommand{\greektext}{%       \fontencoding{LGR}\selectfont\def\encodingdefault{LGR}}     \DeclareRobustCommand{\textgreek}[1]{\leavevmode{\greektext #1}}     \DeclareFontEncoding{LGR}{}{}     \DeclareTextSymbol{\~}{LGR}{126}          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.     \usepackage{booktabs}           \makeatother          \usepackage{babel}     \begin{document}     \selectlanguage{american}%


title: Changing block background color in beamerposter

text: I'm using beamerthemeRJH theme for my poster presentation. The `.sty` file to this theme can be obtained from here. I want to get `OliveGreen` rather than blue color for block background. Any help will be highly appreciated. Thanks


title: How can I add a background to every page except the first?

text: I want to make a company letterhead in LaTeX (example output here), and I did it using `fancyhdr` and absolute positioning, which, while horrible, worked fine so far. I must have updated XeLaTeX, because now every page after the second is broken. It used to give me warnings about badboxes, but everything worked fine. I think the badboxes were because the "background" image was really in the foreground, and the text was just forcefully positioned over it. What I want to do is:   1. Create a title page with `\maketitle` that doesn't include a background image.   2. Include a background image on every other page.   3. Create a "back cover" page (using `\makeback`) that doesn't include the background image. I tried the `wallpaper` package, but it can only set a wallpaper on every page. I tried the `xwatermark` package, but it complains about something called `undefined name grey!55`, which I have no idea about. How can I accomplish what I need?


title: New TikZ arrowhead

text: I'm looking how to use currarrow as a new arrowhead in tikz. Especially it's of the same size of `latex` or `stealth` and way smaller than `triangle 45`. Any idea how to make it? For now I use `node[currarrow, sloped, allow upside down, pos=1] {}` which is not really convenient... ![enter image description here](http://i.stack.imgur.com/jd1QO.png)


title: layout section heading

text: Language requires the following layout for section headings: b. The number and the following period should be in boldface; the heading text should be in SMALL CAPITALS. d. Do not use more than two levels of headings: for example, 1 or 2.3 are fine, but not 3.2.4. If a further division of the section is necessary, simply use SMALL CAPS for the subsection heading, with no number. METHODS. Experiment 1 took place in a sound-attentuated lab ... e. Place section headings on a line with the section number and the first line of the section. 1\. INTRODUCTION. The recent renaissance of ... Is there a way to do this without touching the original text? Currently I have:               \documentclass[letterpaper,12pt]{scrartcl}               \usepackage{times}     \usepackage[T1]{fontenc}   % Silbentrennung          \setkomafont{sectioning}{\normalfont\rmfamily\mdseries\upshape}     \setkomafont{paragraph}{\scshape}     \let\subsubsection=\paragraph          \begin{document}          \section{Section 1}          In this section I want to show that \ldots               \subsection{Subsection 1}          The special focus here is on \ldots          \subsubsection{Subsubsection 1}          This subsubsection is allegal and should come out as a paragraph.          \end{document}      What is missing is the boldface of the number and a dot after the number and a dot after the section title and some setting that treats section and subsection titles like paragraphs. Is there a way to do this in Koma Script?