title: Use a bibtex file with a different extension

text: Is it possible to tell bibtex to use a file with a specific extension? If you do `\bibliography{mybib.org}`, then bibtex simply looks for a file called `mybib.org.bib`. Is there any way to avoid the `.bib` extension? _Using texlive 2011-1._


title: Testing system in beamer

text: Can I use `\radioButton` option in Beamer? I need to make test(choice) system with counting right answers in presentation mode, maybe there's any class for making testing. I have error with `\usepackage[pdftex]{insdljs}`. Can anybody help please?:)


title: Arrow parallel to a line with TikZ

text: I want to add an arrow at $f_2$ pointing towards $Q$ in the following figure. ![enter image description here](http://i.stack.imgur.com/gIts4.png) It should be parallel to the line, I hope this minimal example is enough.                 \documentclass{scrartcl}       \usepackage{tikz}       \usetikzlibrary{calc}       \begin{document}       \begin{tikzpicture}       \draw (0,3) -- node[anchor=south west] {$f_2$} ($cm,0)-(5pt,5pt)$);       % Circle and the Q        \fill[black] ($ (4cm,0) - (5pt,5pt)$) circle (5pt)         node (Q) [anchor=south,above=1pt] {$Q$};        \end{tikzpicture}       \end{document}      I searched for a solution but only found how to make many arrow with markings.


title: Draw 3D rectangle

text: I've been searching this for hours, but didn't find a reason for this behaviour: Here is my example:               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{3d}               \begin{document}         \begin{tikzpicture}[x={(0.866cm,0.5cm)},y={(-0.866cm,0.5cm)},z={(0cm,1cm)}]             \fill[blue!50,opacity=0.6] (0,0,0) rectangle (2,1,0);             \fill[green!50,opacity=0.6] (0,0,0) -- (2,0,0) -- (2,1,0) -- (0,1,0) -- (0,0,0);             \draw[->] (0,0,0) -- (1,0,0);             \draw[->] (0,0,0) -- (0,1,0);             \draw[->] (0,0,0) -- (0,0,1);                  \begin{scope}[xshift=3cm]                 \fill[blue!50,opacity=0.6] (0,0,0) circle (1);                 \draw[->] (0,0,0) -- (1,0,0);                 \draw[->] (0,0,0) -- (0,1,0);                 \draw[->] (0,0,0) -- (0,0,1);             \end{scope}         \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/HRoEj.png) I'd expect both rectangles to be painted the same. To be more precise, both should appear like the green one, but the don't. Obviously, the coordinate of the upper right corner (2,1,0) is correct for both rectangles, but only the green one correctly aligns with the coordinate system's axes. In comparison to this, the circle correcly uses the modified vectors, since it is drawn as an ellipse. What do I have to do, to get the blue rectangle painted like the green one? _**Edit:_** I found something interesting in this answer. Apparently the following code works, but I find it a little inconvenient to place all my rectangle into scopes. Additionally, is _canvas is xy plane at z_ really implemented the wrong way? Why isn't this fixed, then?               \documentclass{article}          \usepackage{tikz}     \usetikzlibrary{3d}          \makeatletter     \tikzoption{canvas is xy plane at z}[]{%       \def\tikz@plane@origin{\pgfpointxyz{0}{0}{#1}}%       \def\tikz@plane@x{\pgfpointxyz{1}{0}{#1}}%       \def\tikz@plane@y{\pgfpointxyz{0}{1}{#1}}%       \tikz@canvas@is@plane     }     \makeatother          \begin{document}     \begin{tikzpicture}[x={(0.866cm,0.5cm)},y={(-0.866cm,0.5cm)},z={(0cm,1cm)}]             \begin{scope}[canvas is xy plane at z=0,transform shape]                 \fill[blue!50,opacity=0.6] (0,0,0) rectangle (2,1,0);             \end{scope}                  \fill[green!50,opacity=0.6] (0,0,0) -- (2,0,0) -- (2,1,0) -- (0,1,0) -- (0,0,0);                  \draw[->] (0,0,0) -- (1,0,0);             \draw[->] (0,0,0) -- (0,1,0);             \draw[->] (0,0,0) -- (0,0,1);                  \begin{scope}[xshift=3cm]                 \fill[blue!50,opacity=0.6] (0,0,0) circle (1);                 \draw[->] (0,0,0) -- (1,0,0);                 \draw[->] (0,0,0) -- (0,1,0);                 \draw[->] (0,0,0) -- (0,0,1);             \end{scope}     \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/fUb4k.png)


title: Caption appears with ugly head at end of longtable

text: I want to put a lengthy caption at the end of a table, and, as currently formatted, the caption doesn't fit on the page with the last row of the table. The result is a rather ugly header on the last page; in particular, the double `\hline` in the head produces a horizontal line unattached to a table, which is rather unsightly. Basically, I'm looking for something like a `\endlasthead`. Example code:               \documentclass[landscape]{article}     \usepackage{lmodern}     \usepackage{graphicx, longtable, multirow}          \begin{document}     \begin{longtable}{|c|c|}     \hline     \textbf{Letters} & \textbf{Numbers} \\     \hline \hline     \endfirsthead          \multicolumn{ 2 }{c}     {{\bfseries \tablename\ \thetable{} -- continued from previous page}}      \\ \hline      \textbf{Letters} & \textbf{Numbers} \\      \hline \hline         \endhead          \hline \multicolumn{2}{|r|}{{Continued on next page}} \\ \hline     \endfoot     \endlastfoot          A & 1 \\ B & 2 \\ C & 3 \\ D & 4 \\ E & 5 \\ F & 6 \\ G & 7 \\ H & 8 \\ I & 9 \\ J & 10 \\ K & 11 \\ L & 12 \\ M & 13 \\ N & 14 \\ O & 15 \\ P & 16 \\ Q & 17 \\ R & 18 \\ S & 19 \\ T & 20 \\ U & 21 \\ V & 22 \\ W & 23 \\ X & 24 \\ Y & 25 \\ Z & 26 \\          \caption{Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.}     \end{longtable}          \end{document}      Here's a question where someone was able to change the first foot, so I'm guessing this should be possible. My tex fu isn't up to parsing @Heiko Oberdeik's solution, but if someone can explain how it could be modified for my purposes that would work.


title: How to force math symbols up and down inline text

text: I've a simple question I can't figure out. There should be an option that can force the symbols up and down of a formula put inside text. e.g. If I write               blablabla $\bigcup_{stuff}$ blablabla      the part "stuff" is put on the right side of the symbol instead of down. I would like to force "stuff" to be put under the simbol `\bigcup`. What do I have to do?


title: Beamer: Column Env

text: I could not find why column environment is not working. Here is MWE:               \documentclass{beamer}     \begin{document}     \begin{frame}     \begin{columns}     \column      \begin{itemize}         \item Conduction         \item Convection         \begin{itemize}             \item<2-> Forced             \item<2-> Natural         \end{itemize}         \item Radiation         \end{itemize}     \column      \begin{itemize}         \item Rayleigh No.         \item Grashof No.     \end{itemize}     \end{columns}     \end{frame}     \end{document}


title: Redefine report Part with image

text: I am trying to include an image on the part title page of my report, so that it looks like this, but shows up correctly in the ToC:               \clearpage     \newpage     {\pagestyle{empty} \enlargethispage{10\baselineskip}     {\huge\textbf{Part I: Lorem Ipsum}}\\     \noindent\rule{\textwidth}{0.4pt}     \begin{center}     \includegraphics[width=\textwidth]{figures/part_1_title.pdf}     \end{center}     \clearpage}     \newpage      A similar question has been asked here, but for me the `\printparttitle` produces an error. Does someone know how to do this? An other similar question was asked in an other forum: here. I tried to modify the defnition of `\part` from the `report.cls` file to actually get the title of the Part to look different, but it didn't work. (I need the space for the picture). What it looks like:   **Part I   Lorem Ipsum** What I want it to look like   **Part I: Lorem Ipsum** which is obtained by this code:               {\pagestyle{empty} \enlargethispage{10\baselineskip}     {\huge\textbf{Part I: Lorem ipsum}}\\     \noindent\rule{\textwidth}{0.4pt}     \begin{center}     \includegraphics[width=\textwidth]{figures/PartI_Loerm.pdf}     \end{center}      Does someone have an idea?


title: How to format a set of paragraphs with captions to the left of the first line

text: I am trying to write a document with a list of paragraphs that have an introductory caption displayed to the left of the first line of each paragraph, such that the captions appear as a left column and the paragraphs as a right column. All this appears within a standard one-column article. What I have come up with is to use a table. I have:               \begin{tabularx}{\linewidth}{l X}     First row caption & \lipsum[1]\\     Second row caption & \lipsum[2]\\     Third row caption & \lipsum[3]\\     Fourth row caption & \lipsum[4]     \end{tabularx}      If the `lipsum` in that example is replaced with real paragraph text, it becomes quite unwieldy due to the fact it's all embedded together and the need for line continuations it is all rather messy. What I'd like is something like this:               \begin{captioned-text}{First row caption}     \lipsum[1]}     \end{captioned-text}     \begin{captioned-text}{Second row caption}     \lipsum[2]}     \end{captioned-text}     \begin{captioned-text}{Third row caption}     \lipsum[3]}     \end{captioned-text}     \begin{captioned-text}{Fourth row caption}     \lipsum[4]}     \end{captioned-text}      With real text in place (potentially multiple paragraphs of real text) this would be more readable. I am hoping that there is some package out there that does this kind of thing already and I have just not found it. Is there a better way to achieve this than using a table ?


title: How to set size of pdf page in pixels and put a background image

text: I need to create certificates in pdf. I have an image, where the text must be put to the appropriate place. I managed to set the correct pdf page size and all margins, except the top:               \documentclass{standalone}     \usepackage[paperwidth=1055px,paperheight=700px]{geometry}     \usepackage{graphicx}     \setlength{\oddsidemargin}{0px}     \begin{document}     \includegraphics{bg.png}     \end{document}      But there is little top margin, that shifts the image out of the page. ![enter image description here](http://i.stack.imgur.com/H4jOX.png) How can I set the picture as the background of this page? And remove the margin? Then I'll use tikz to position the text.


title: How to add new command in moderncv template?

text: I want to add new `moderncv` command to act like address command exactly, I mean in format and positioning except that I will called this time `\address2` here is a quick demonstration of what I want, here is the original commands               \firstname{ }     \familyname{ }     \address{ }{ }         \mobile{ }                         \email{ }      what I want is something like this               \firstname{ }     \familyname{ }     \address{ }{ }     \address2{ }{ }         \mobile{ }                         \email{ }      and this will give final result like the original one but `\address2` after original address, How can I do such thing?!


title: How to print shortauthor in the references as well?

text: I have several sources in my reference list that I need to abbreviate for citing them (e.g. (IEA 2005)). I do this with biblatex and {shortauthor}, which works great. Still, how can I show the abbreviation also in the reference list, making it look something like: > IEA (2005): International Energy Agency. _World Energy Outlook 2005_.... or maybe even better: > IEA - International Energy Agency (2005): _World Energy Outlook 2005_.... instead of: > International Energy Agency (2005). _World Energy Outlook 2005_....


title: tikz, drawing a rectangle with spikes on borders

text: I would like to draw a scrabble board. On my long journey to do that, I would like to set nodes which I could use around the board. The grid, that I can do. Now I'am looking at coding for "triple word score", "double letter score", etc. The model is here ![enter image description here](http://i.stack.imgur.com/jOWdV.jpg) my MWE is here:               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{decorations.pathmorphing}          \tikzstyle{mtr} =[draw=black, fill=red, opacity=1, rectangle, decorate, decoration={snake,amplitude=1,segment length=3}, minimum width=0.98cm, minimum height=0.98cm, text width=0.8cm, inner ysep=0cm, inner xsep=0cm, text centered, execute at begin node=\setlength{\baselineskip}{8pt}]          \begin{document}     \begin{tikzpicture}     \node[mtr]  at(1,1) (mtr1) {\tiny{Triple word score}};     \end{tikzpicture}     \end{document}      Now, how do I get the spiky part to look like my model? with only 3 spikes centered on each border? THanks,


title: working with \noindent and \indent

text: How can I write a text with this style? Between the `\section` and the text, I want to place some bullets with smaller font sizes. Please note the no-indent bullets and the indentation of the first line of paragraph. I have wrote this but there is no indentation at the first paragraph.               \section{The Section}     \noindent         \begin{itemize}           \item \textit{good}           \item \textit{bad}         \end{itemize}     \indent In this section....      ![enter image description here](http://i.stack.imgur.com/NZzdg.jpg)


title: How do I conditionally execute something based on a documentclass option?

text: I'd like to conditionally do some things (like input a file) depending on if a specific class option was passed. For example, I'd like to have an "instructor" option to the class that would input a file of instructor notes. Something like:               \documentclass[instructor]{book}          \begin{document}     \if@instructor        \input{instructor-notes}     \fi     Rest of stuff     \end{document}      Is there some code I can put in the preamble to set something (maybe an ifthen boolean?) based on if the instructor option is passed to the class? My goal in doing this is to make it trivial for someone to change the file to include the instructor portions of the book. If what I'm trying to do above is an ugly way to do it, I'd love to hear a more elegant way!


title: How to reduce page margins and center text on it?

text: I need a custom title page, where the margins create a tighter area for the page contents and a title text is centered horizontally and vertically. How do I do that? By tighter margins I mean margins that differ from my regular document margins (set in the \document command).


title: Adding text over matrix in LaTeX

text: I am trying to accomplish this in LaTeX.                       j         ⎡a  b  c⎤         |d  e  f|         ⎣h  i  j⎦      so that the "j" is aligned with the center of the matrix. It seems like I can't use the `\begin{align}` in LaTeX while also using the `\begin{matrix}` environment, because any `&` inside the matrix environment will not apply to the align environment


title: Defining own labels with chemnum 1.0

text: When using:               \documentclass{standalone}     \usepackage{graphicx,auto-pst-pdf,chemnum}     \begin{document}     \cmpd[counter-representation=bar]{foo}     \end{document} ` I get "1" as label output. I would like to define an own label with `foo` being the internal descriptor and `bar` being the label's output when called. Pre-1.0 I was using `\cmpd[cmpd-label=foo]{bar}` which did what I wanted.


title: How to draw a poset Hasse Diagram using TikZ?

text: I need to draw an Hasse Diagram using LaTeX. TikZ is the solution I would like to use. I tried with a simple structure involving trees but obviously when I need to join two nodes, it is not possible. I searched a little but found no immediate solutions for Hasse Diagrams in TikZ. Which one is the fastest structure I can use? I would like also to have the tree syntax flexibility without manually specifying where nodes should be places. I just want to specify nodes and connections.


title: strange interaction between `mdframed` and `\item`

text: I would like to understand (and to find a solution for it) the following problem. First, the MWE :               \documentclass{article}     \usepackage{mdframed}     \usepackage{fancybox}               \newsavebox{\mcBox}          \newenvironment{monItemize}{     \renewcommand{\item}%     {\end{lrbox}%     \fbox{     \usebox{\mcBox}     }   \\\begin{lrbox}{\mcBox}}%     \begin{lrbox}{\mcBox}%     }     {\end{lrbox}     \fbox{%     \usebox{\mcBox}%     }%     }          \newcommand{\itemm}{}     \newenvironment{monItemizeMD}{     \renewcommand{\itemm}%     {\end{lrbox}%     \begin{mdframed}[userdefinedwidth=3cm]%     \usebox{\mcBox}     \end{mdframed}%         \begin{lrbox}{\mcBox}}%     \begin{lrbox}{\mcBox}%     }     {\end{lrbox}     \begin{mdframed}[userdefinedwidth=3cm]%     \usebox{\mcBox}     \end{mdframed}%     }          \begin{document}               \begin{monItemize}     \item aaa     \item bbb     \end{monItemize}          \begin{monItemizeMD}     \itemm ccc     \itemm ddd     \end{monItemizeMD}          \end{document}      In the environment `monItemize`, I redefine `\item`, which puts the content in a `fbox`. In the environment `monItemizeMD`, I define the items thru a command `\itemm`, instead of `\item`, and the content lies in a mdframed-Box instead of a `\fbox`.   1. Question: If I use `\item` in `monItemizeMD` (of course, both in the definition and in the Instance of the environment), it fails to compile. Why ?   2. Question: How secure is it, generally speaking, to redefine `\item` ?   3. Question: Can i solve the problem of Question 1, still using `\item` ? Because my problem is, that, in many already existing documents, i have such an environment with `\item` redefined. And in my documentclass, i wanted to replace the `\fbox` by mdframed boxes.


title: How to put a conditional construct in \edef

text: `\ifthenelse` works fine normally, but when used in `\edef`:               \documentclass{article}     \usepackage{ifthen}     \newcommand\testing[1][]{%         \edef\tmp{\ifthenelse{\equal{#1}{}}{Blank}{#1}}%     }     \begin{document}         \testing     \end{document}      I get:               ! Undefined control sequence.     <argument> \equal                        {}{}     l.10       I also get this error when I use `\ifthenelse` in a `\putbib` command (from the `bibunits` package). Is there a way around that?


title: LaTeX table creation

text: I am new to LaTeX and really stuck in creating a table. A table created in Word is attached. Can someone help me create this table in LaTeX as it is? ![table](http://i.stack.imgur.com/usJ0H.png) I tried, but couldn't connect the arrows and all together. My code so Far:               \begin{center}     \setlength\extrarowheight{2.5pt}     \begin{tabular}{  " c |  c | c | c | c | c | c" }     \hlinewd{1.5pt}      \rowcolor{LightCyan}      \small\textit{g(t+0)} & \small\textit{g(t+1)} & \small\textit{g(t+2)} & \small\textit{f(t+3)} & \small\textit{f(t+4)} & \small\textit{g(t+5)} & \small{...}\\[2.5pt]     \hlinewd{1.5pt}     \end{tabular}     \end{center}


title: How to use tikz to draw array of decorative boxes

text: How can i use Tikz to draw a picture like this one ![enter image description here](http://i.stack.imgur.com/ilVZC.png) * * * I tried the following example but was unable to know how to draw cell outlines (borders_               \documentclass[12pt,a4paper]{article}     \usepackage[left=0cm,right=0cm,top=0cm,bottom=0cm]{geometry}     \usepackage{tikz}     \usepackage{collcell}          \newcommand*{\MinNumber}{0}%     \newcommand*{\MaxNumber}{1}%          \newcommand{\ApplyGradient}[1]{%             \pgfmathsetmacro{\PercentColor}{100.0*(#1-\MinNumber)/(\MaxNumber-\MinNumber)}             \hspace{-0.33em}\colorbox{red!\PercentColor!black}{}     }          \newcolumntype{R}{>{\collectcell\ApplyGradient}c<{\endcollectcell}}     \renewcommand{\arraystretch}{0}     \setlength{\fboxsep}{10mm} % box size     \setlength{\tabcolsep}{0pt}          \begin{document}     \begin{table}[ht]     \begin{center}     \begin{tabular}{*{12}{R}}     0.03 & 0.34 & 0.41 & 0.25 & 0.89 & 0.49 & 0.79 & 0.83 & 0.82 & 0.94 & 0.34 & 0.41 \\     0.49 & 0.25 & 0.80 & 0.83 & 0.93 & 0.25 & 0.82 & 0.80 & 0.35 & 0.00 & 0.25 & 0.80 \\     0.21 & 0.13 & 0.53 & 0.07 & 1.00 & 0.66 & 0.07 & 0.18 & 0.73 & 0.05 & 0.13 & 0.53 \\     0.81 & 0.49 & 0.27 & 0.07 & 0.57 & 0.12 & 0.26 & 0.39 & 0.57 & 0.80 & 0.49 & 0.27 \\     0.23 & 0.31 & 0.90 & 0.03 & 0.18 & 0.60 & 0.49 & 0.02 & 0.44 & 0.50 & 0.31 & 0.90 \\     0.40 & 0.91 & 0.84 & 0.88 & 0.04 & 0.59 & 0.75 & 0.91 & 0.69 & 0.88 & 0.91 & 0.84 \\     0.36 & 0.12 & 0.92 & 0.73 & 0.12 & 0.58 & 0.42 & 0.89 & 0.15 & 0.50 & 0.12 & 0.92 \\     0.93 & 0.07 & 0.57 & 0.43 & 0.12 & 0.70 & 0.54 & 0.25 & 0.06 & 0.57 & 0.07 & 0.57 \\     0.09 & 0.98 & 0.46 & 0.83 & 0.69 & 0.56 & 0.08 & 0.77 & 0.40 & 0.88 & 0.98 & 0.46 \\     0.81 & 0.49 & 0.27 & 0.07 & 0.57 & 0.12 & 0.26 & 0.39 & 0.57 & 0.80 & 0.49 & 0.27 \\     0.36 & 0.12 & 0.92 & 0.73 & 0.12 & 0.58 & 0.42 & 0.89 & 0.15 & 0.50 & 0.12 & 0.92 \\     0.93 & 0.07 & 0.57 & 0.43 & 0.12 & 0.70 & 0.54 & 0.25 & 0.06 & 0.57 & 0.07 & 0.57 \\     0.09 & 0.98 & 0.46 & 0.83 & 0.69 & 0.56 & 0.08 & 0.77 & 0.40 & 0.88 & 0.98 & 0.46 \\     0.81 & 0.49 & 0.27 & 0.07 & 0.57 & 0.12 & 0.26 & 0.39 & 0.57 & 0.80 & 0.49 & 0.27 \\     0.09 & 0.98 & 0.46 & 0.83 & 0.69 & 0.56 & 0.08 & 0.77 & 0.40 & 0.88 & 0.98 & 0.46 \\     0.07 & 0.44 & 0.65 & 0.46 & 0.65 & 0.75 & 0.80 & 0.56 & 0.89 & 0.50 & 0.44 & 0.65 \\     \end{tabular}     \end{center}     \end{table}     \end{document}


title: Base document page numbers with pdfpages and nup

text: It's possible to have `pdfpages` number the pages of the document it including using the following command:               \includepdfset{pagecommand=\thispagestyle{plain}}      (cf. Base document page numbers with pdfpages ) Unfortunately, this doesn't play nicely with `nup` (which puts multiple source pages on one target page); the numbering is applied to the output pages rather than the input pages:               \documentclass{article}     \usepackage{pdfpages}     \includepdfset{pagecommand=\thispagestyle{plain}}          \begin{document}     \includepdf[nup=2x3,pages={1-6},frame=true]{<use any PDF file>}     \end{document}      Cf. the '1' at the bottom of this, where I would want 1-6 on the pages: ![enter image description here](http://i.stack.imgur.com/zTOvZ.png) Is there any way around this?


title: How do I eliminate extra vertical space between the title and the first section heading?

text: When I use the `amsart` class with a lot of in-text figures, I find that the section headings do not stand out quite as much as I would like. Thus, I have taken to adding the following to my preamble, which adds a extra vertical space before each section heading:               \let \oldsection \section     \renewcommand{\section}{\vspace{8pt plus 3pt}\oldsection}      This works well for me, except when I have a section heading right after the document title; in this case, I find would prefer that no extra space be added. **How can I eliminate this extra space "automatically"--i.e., without explicitly adjusting spacing in the body of the document?** * * * **Examples:** Here are three examples side-by-side: ![enter image description here](http://i.stack.imgur.com/opSWF.png) You may want to zoom in. The example on the left is the result of the code below:               \documentclass{amsart}          \let \oldsection \section     \renewcommand{\section}{\vspace{8pt plus 3pt}\oldsection}          \usepackage{lipsum}          \title{Random title}     \author{Fred P.~Author}     \date{\today}          \begin{document}     \maketitle     \section{The first section}     \lipsum[2]     \section{The next section}     \lipsum[4]     \end{document}      ![enter image description here](http://i.stack.imgur.com/HNlF2.png) Notice the extra space after "Fred P. Author" compared to the result I would like (the image on the right, in the side-by-side picture):               \documentclass{amsart}          \usepackage{lipsum}          \title{Random title}     \author{Fred P.~Author}     \date{\today}          \begin{document}     \maketitle     \section{The first section}     \lipsum[2]     \vspace{8pt plus 3pt}     \section{The next section}     \lipsum[4]     \end{document}      ![enter image description here](http://i.stack.imgur.com/a7WNW.png) Finally, the image in the middle was given simply to illustrate that the `titlesec` package does not seem to solve the problem--at least, not in any naively obvious way. The code I used for it was the following (which I do not claim is exactly equivalent, but which still demonstrates the same extra space after the document title/author):               \documentclass{amsart}          \usepackage{titlesec}     \titleformat{\section}[hang]       {\scshape\filcenter}       {\thesection.}       {1ex}       {}     \titlespacing{\section}       {0pt}{18pt}{6pt}          \usepackage{lipsum}          \title{Random title}     \author{Fred P.~Author}     \date{\today}          \begin{document}     \maketitle     \section{The first section}     \lipsum[2]     \section{The next section}     \lipsum[4]     \end{document}


title: Multiple Authors in scrartcl

text: I have the following code in the document portion and I can't seem to get \and to work with it - I'm assuming that it's due to something specific to using this class?               \begin{document}     % ------------------------------------------------------------------------------     % Maketitle     % ------------------------------------------------------------------------------     %\maketitle     \thispagestyle{empty}               % Remove page numbering on this page          \printtitle                                 % Print the title data as defined above     \vfill     \printauthor                                % Print the author data as defined above     % ------------------------------------------------------------------------------     % Begin document     % ------------------------------------------------------------------------------          % ------------------------------------------------------------------------------     % End document     % ------------------------------------------------------------------------------     \end{document}      I tried using `\maketitle` but that just messes up how my document looks so I'm wondering if there is another way to do this? Full document:               % ------------------------------------------------------------------------------     % LaTeX Template: Titlepage     % This is a title page template which be used for both articles and reports.     %     % Copyright: http://www.howtotex.com/     % Date: April 2011     % ------------------------------------------------------------------------------          % -------------------------------------------------------------------------------     % Preamble     % -------------------------------------------------------------------------------     \documentclass[paper=a4, fontsize=11pt,twoside]{scrartcl}       % KOMA article          \usepackage[a4paper,pdftex]{geometry}                                       % A4paper margins     \setlength{\oddsidemargin}{5mm}                                             % Remove 'twosided' indentation     \setlength{\evensidemargin}{5mm}          \usepackage[english]{babel}     \usepackage[protrusion=true,expansion=true]{microtype}       \usepackage{amsmath,amsfonts,amsthm,amssymb}     \usepackage{graphicx}          % ------------------------------------------------------------------------------     % Definitions (do not change this)     % ------------------------------------------------------------------------------     \newcommand{\HRule}[1]{\rule{\linewidth}{#1}}   % Horizontal rule          \makeatletter                           % Title     \def\printtitle{%                                {\centering \@title\par}}     \makeatother                                              \makeatletter                           % Author     \def\printauthor{%                           {\centering \large \@author}}                    \makeatother                                      % ------------------------------------------------------------------------------     % Metadata (Change this)     % ------------------------------------------------------------------------------     \title{ \normalsize \textsc{Biomechatronics}    % Subtitle of the document                 \\[2.0cm]                                                   % 2cm spacing                 \HRule{0.5pt} \\                                        % Upper rule                 \LARGE \textbf{\uppercase{Exercise vs. Effort}} % Title                 \HRule{2pt} \\ [0.5cm]                              % Lower rule + 0.5cm spacing                 \normalsize \today                                  % Todays date             }          \author{             Author 1\\                     \and             Author 2\\     }                    \begin{document}     % ------------------------------------------------------------------------------     % Maketitle     % ------------------------------------------------------------------------------     \thispagestyle{empty}               % Remove page numbering on this page          \printtitle                                 % Print the title data as defined above         \vfill     \printauthor                                % Print the author data as defined above     % ------------------------------------------------------------------------------     % Begin document     % ------------------------------------------------------------------------------          % ------------------------------------------------------------------------------     % End document     % ------------------------------------------------------------------------------     \end{document}


title: Modified abstract and thanks with two front pages

text: I have to use a specific format for documents in in LaTeX. I have to use a `.sty` file (`iadb.sty`) and in it is specified the abstract and thanks as follow:               %Abstract and Thanks          \let\abstractname@save\abstractname     \let\@addtoThanks\@empty     \def\abstractname{{\normalsize\abstractname@save}\@addtoThanks     \global\let\@makefnmark@special\@makefnmark}     \newcommand{\addtoThanks}[1]{\g@addto@macro\@addtoThanks{\footnote{#1}}}     \newcommand{\Thanks}[1]{\addtoThanks{#1}}      But beside using this `.sty` file I need to make two front pages, one with authors and other without authors. I am doing the following but there is an error. What should I do?               \documentclass[12pt,openbib]{article}     \usepackage{iadb}     \usepackage{titling}     ..     \begin{document}          \title{The Title}     \date{  }     \author{Author1\Thanks{%     University1}      and Author2\Thanks{%     University2}}     \maketitle          \begin{abstract}     ABSTRACT     \end{abstract}          \newpage     \thispagestyle{empty}     \title{The Title}     \date{  }     \author{\emptythanks}     \maketitle          \begin{abstract}     ABSTRACT     \end{abstract}


title: Not equal spacing on both sides of PSTricks figure

text: Taking the code of PSTikZ's answer from "PSTricks figure way too big; normal scaling seems not to work" (and putting an `\fbox` around it to illustrate the problem), I get the following:               \documentclass{article}          \usepackage{pstricks}          \begin{document}          \begin{figure}     \psset{       unit=0.2,       linewidth=1pt     }     \def\radius{19.2}     \def\lige{33.3}     \newlength\R \R=\radius\psunit     \newlength\hW \hW=\lige\psunit     \hW=0.5\hW      \centering     \fbox{%       \begin{pspicture}(-\dimexpr\hW+\R,-\radius)(\dimexpr\hW+\R,\radius)        \psset{          linecolor=red        }         \psarc( \hW,0){\R}{270}{90}         \psarc(-\hW,0){\R}{90}{270}         \psline(-\hW, \R)(\hW, \R)           \psline(-\hW,-\R)(\hW,-\R)        \psset{          linecolor=black,          linestyle=dotted        }         \psline(-\hW,-\R)(-\hW,\R)         \psline( \hW,-\R)( \hW,\R)         \psline(\dimexpr-\hW-\R,0)(\dimexpr\hW+\R,0)         \rput*(0,0){\lige\,cm}         \rput*(\dimexpr-\hW-0.5\R,0){\radius\,cm}         \rput*(\dimexpr \hW+0.5\R,0){\radius\,cm}         \rput(-\hW,0){\textbf{+}}         \rput( \hW,0){\textbf{+}}       \end{pspicture}     }     \end{figure}          \end{document}      ![output](http://i.stack.imgur.com/6q4VJ.jpg) Why is there more space on the right hand side of the figure than on the left? P.S. This is a universal problem/"feature" of PSTricks pictures.


title: ConTeXt: How to increase line-spacing in title?

text: Pandoc generates ConTeXT document titles using a standard simple scheme that sets the title in `\tfd`. I already changed the default font and size of `\tfd`. However, when a title is so long that it occupies more than one line, standard line-spacing turns out to be inadequate. In below example, the "p" of "space" and the "l" of "long" are almost touching. Compare this with the "p" and "l" of the normal text below. **Question:** How do I obtain a larger line-spacing by only modifying the preamble (i.e. not changing anything between `\starttext` and `\stoptext`)?               \setuptolerance[horizontal, tolerant, stretch]          \usetypescript[pagella]     \setupbodyfont[pagella,12pt]     \setupbodyfontenvironment[12pt][       d=30pt,% For title       a=12pt% For author & date       ]          \setuppagenumbering[location={footer,center}]          \starttext     \startalignment[center]       \blank[2*big]         {\tfd The space between the lines of this long title is not enough!}       \blank[3*medium]         {\tfa The author}       \blank[2*medium]         {\tfa September 10, 2013}       \blank[3*medium]     \stopalignment          Space,\crlf     please!     \stoptext      ![output](http://i.stack.imgur.com/Uvd0r.png)


title: Align tikz node labels

text: I have created the following picture using tikz:               \tikzset{         graphnode/.style={           draw,fill,           circle,           minimum size=0.7mm,           inner sep=0         },     }          \begin{tikzpicture}[every node/.style={graphnode}]            \node (b)[label=left:$b$] at (0,0) {};       \node (g)[label=right:$g$] at (4,0) {};       \node (r)[label=above:$r$] at (2,3.4641) {};            \node[label=below:$v$] (n1) at (1.5,0.8) {};       \node[label=below:$u$] (n2) at (3,0.5) {};       \node[label=above right:$w$] (n3) at (2.1,2) {};            \draw(r.center) -- (g.center) -- (b.center) -- cycle;            \draw (n1.center) -- (b);       \draw (n2.center) -- (b);       \draw (n3.center) -- (b);            \draw (n1.center) -- (n2.center);       \draw (n2.center) -- (g);       \draw (n3) -- (g);            \draw (n1.center) -- (n3.center);       \draw (n2.center) -- (n3.center);       \draw (n3.center) -- (r);          \end{tikzpicture}      The problem is that the two labels _b_ and _g_ are not properly aligned. How can I align them without changing the node positions?


title: LaTeX - side-by-side subfigures?

text: I'm trying to create a float that spans two columns that has multiple side-by- side subfigures. I've included the subcaption environment, and here's what I've got so far:               \begin{figure*}[h]     \begin{center}         \begin{subfigure}[h]{0.3\textwidth}         \begin{tikzpicture}         \begin{axis}         \addplot[color=black!100,mark=x] coordinates {             (1, 4.89)             (2, 6.74)         };         \end{axis}         \end{tikzpicture}         \end{subfigure}              \begin{subfigure}[h]{0.3\textwidth}         \begin{tikzpicture}         \begin{axis}         \addplot[color=black!100,mark=x] coordinates {             (1, 21.9)             (2, 15.6)         };         \end{axis}         \end{tikzpicture}         \end{subfigure}     \label{Results2}     \end{center}     \end{figure*}      However, this ends up giving me two subfigures one over the other. What am I doing wrong? Thanks in advance for the help


title: Can I redefine \begin so that it does not complain about undefined environment

text: I'd like to be able to do the following kind of thing:               \documentclass{standalone}     \begin{document}     Foo     \begin{MyUndefinedEnv}       Bar     \end{MyUndefinedEnv}     \end{document}      without `LaTeX` complaining about undefined environment. Is it possible without breaking existing environments?


title: Problem using align in enumerate environment

text: I'm creating a list with enumerate of both positive and negative numbers, and would like the numbers to be lined up with one another, i.e. all in the same column. I also have a second list with decimal numbers, and I would like to line up the decimal points. I tried using \begin{align} within the enumerate list as in               \begin{enumerate}     \begin{align*}[t]     \item $-&2$     \item $3$     \item $-18$     \item $83.2$     \item $-112.2$     \end{align*}     \end{enumerate}      but it gives me the error \begin{aligned} allowed only in math mode. I have the amsmath package loaded, and I'm compiling with xelatex. Edit: xelatex is now giving me this error even when I have commented out the problem area.


title: Redefining formatting commands to add colors

text: I'm writing a document, and I'd like for all bold text to be red. I was wondering how I could `renewcommand` the `textbf` command so that it would be wrapped in `\textcolor{red}`? Thanks


title: how to position pdf with \includepdf in book, also depending on even/odd page

text: I am writing my thesis for which we have specific requirements regarding the paper size. This is what I have at the beginning of my thesis file:               documentclass[a4paper]{book}     \textheight=175mm     \textwidth=120mm     \oddsidemargin=-1in     \addtolength{\oddsidemargin}{22mm}     \evensidemargin=-1in     \addtolength{\evensidemargin}{68mm}      New chapters start on the right page if you look at a two-page view. The pages "lean in toward the middle" with the margins on the outer sides and down below. I have no problems with this when using ordinary TeX-input, but when I try to include a pdf I cannot force it to obey the margins. This is how I do it now:               \cleardoublepage     \includepdf[pages=-,templatesize={120mm}{175mm},noautoscale=true]{myfile.pdf}      I tried using the offset option but I could not put the pdf pages where I wanted them. Their position should also alternate depending on odd or even page number. Any help is appreaciated!


title: Is there an easy way to raise or lower the hat operator in math mode

text: Using the hat operator in math mode in beamer, the hats are smashing into the characters. I can use `\skew{n}` to move them n points to the right, but I need to raise them a point or two. Is there an easy way to do this? For example, the identity operator:               \[ \skew{4} \hat{\textrm{\emph{I}} \]      ends up looking like an anemic lollipop. (I use an italicized text mode I because in the math font, the capitol I is a angled straight line that could easily be a 1 or a lowercase l.) Any advice? Regards, Martin


title: Relationship between tikz circuit library and circuitikz?

text: Is there any relationship between tikz circuit library and circuitikz, for example that one is build on top of the other. Are they compatible in some way? Is one of them in some way obsolete?


title: How to get a ragged-right footnote with Memoir

text: I need to put a rather long list of names in a footnote. They can't be properly hyphenated and do not break into pretty lines, so leaving the right side of text ragged seems a perfect solution to me. However, I was surprised when `\footnote{\raggedright ABC}` did not work out. `\RaggedRight` from ragged2e package fails too as well as `\usepackage[ragged]{footmisc}`. I'm using _memoir_ as a document style, so I tried plain _article_ instead... and `\raggedright` started working as expected.               \documentclass[a4paper, 12pt]{memoir}     %\documentclass[a4paper, 12pt]{article}          \begin{document}     Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor     incididunt ut labore et dolore magna aliqua.\footnote{\raggedright Ut enim ad     minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea     commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit      esse cillum dolore eu fugiat nulla pariatur.} Excepteur sint occaecat upidatat     non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.          Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor     incididunt ut labore et dolore magna aliqua.\footnote{Ut enim ad minim veniam,     quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo     consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse     cillum dolore eu fugiat nulla pariatur.} Excepteur sint occaecat upidatat non     proident, sunt in culpa qui officia deserunt mollit anim id est laborum.     \end{document}      I suspect memoir's footnote series are the cause, but their source code is, ugh... complex. So, a question: how do a I make a certain footnote left-justified with memoir?


title: Changing color of text snippet in a verbatim environment

text: Is it possible to change color of part of the text that is in a verbatim environment? Lets say I have this verbatim section. I want to change the color of the marked lines into blue.               \begin{verbatim}         BOT: (Begin of Transaction)                  SQL-DML-1; // update Kunden (...)                 --> (C1, C2, C3)  /* MAKE THIS RED */             SET CONSTRAINTS C4 IMMEDIATE;                 --> (C4)          /* MAKE THIS RED */             SET CONSTRAINTS C3 DEFERRED;                  SQL-DML-2; // update Produkte (...)                   --> (C1, C2, C4)  /* MAKE THIS RED */             SQL-DML-3; // update Bestellungen (...)                 --> (C1, C7, C4)  /* MAKE THIS RED */             EOT: (End of Transaction) (COMMIT) /* INSERT MATH SYMBOL HERE */                 --> (C3, C5, C6)  /* MAKE THIS RED */             RBT: Roll-Back-Transaction (alles rückgängig gemacht)                 \end{verbatim}      Additionally, is it possible to make mathematical symbols in a verbatim environment? I know that this is contradictory per se, but maybe there's a kind of hack to to this.


title: Bibtex unsrt type style that shows arxiv links?

text: Is it possible to use `unsrt` style for bibtex that will show arxiv links? I remember using `apsrev4-1` for one seminar before and that showed arxiv links, even combined them with hyperref so you could easily click on them in pdf. But Now when I use that I get errors (I guess it's because I'm not using `revtex` as document class). The issue is that some articles I cited are only on arxiv, not in any journal, and `unsrt` just lists author, name of the article and the year of publishing. I'd like to also add arxiv link so that it's not empty looking. EDIT: I managed the look I want (sort of, I still get semi colon instead of colon, when citing multiple sources), this is the mwe that resembles the most to my original file:               \documentclass[a4paper,12pt,oneside,openright]{book}          \usepackage[utf8x]{inputenc}     \usepackage{ucs}     \usepackage[T1]{fontenc}     \usepackage{tgtermes}     \usepackage[croatian]{babel}     \usepackage[usenames,dvipsnames,svgnames]{xcolor}     \usepackage{natbib}     \setcitestyle{square,numbers,colon}     \usepackage[colorlinks=true, linkcolor=DarkGray, citecolor=DarkGray, urlcolor=DarkGray, plainpages=false, pdfpagelabels, hypertexnames=false, unicode]{hyperref}               \usepackage{setspace}      \onehalfspacing          \hypersetup{linkcolor=DarkGray}               \begin{document}          This is an example \cite{Anninos:2008fx}\cite{Arnowitt:1962hi}\cite{Banados:1992gq,Bardeen:1999px}               And another \cite{Bekenstein73,Cardy1,Cardy2}\cite{lrr-2004-1,de1998lie}          \bibliographystyle{apsrev4-1}     \bibliography{mybib}          \end{document}      The bibliography is badly stretched, and in my original file (which I won't post here since its preamble is massive alone) I get this: ![enter image description here](http://i.stack.imgur.com/Ai4Yg.png) The last reference even goes out of bounds :S EDIT2: This did it:               \begingroup     \raggedright     \sloppy     \bibliographystyle{apsrev4-1}     \bibliography{mybib}     \endgroup


title: How to get XeLaTeX do proper hyphenation and full justification?

text: I want to use XeLaTeX to design a paperback (11x19cm) using Adobe's Garamond and Myriad as custom fonts. It is entirely written in German. However, both hyphenation and full justification are a mess: in my MWE there are four breaks in four lines and the German Umlaut "ß" seems to cause a problem as well. And here comes my MWE:               % !TEX TS-program = xelatex     % !TEX encoding =UTF-8 Unicode          \documentclass[11pt,headings=small]{scrbook}          \usepackage[paperwidth=11cm,paperheight=19cm]{geometry}          \usepackage{fontspec} % Allows font customization     \usepackage{xltxtra}          \usepackage{polyglossia}     \setmainlanguage{german}               \defaultfontfeatures{Mapping=tex-text}     \setmainfont {Minion Pro} % Main document font     \setsansfont {Myriad Pro} % Heading font               \begin{document}     \chapter{Die Berge -- eine erfundene Idylle}     Weit hinten, hinter den Wortbergen, fern der Länder Vokalien und Konsonantien leben die Blindtexte. Abgeschieden wohnen Sie in Buchstabhausen an der Küste des Semantik, eines großen Sprachozeans. Ein kleines Bächlein namens Duden fließt durch ihren Ort und versorgt sie mit den nötigen Regelialien. Es ist ein paradiesmatisches Land, in dem einem gebratene Satzteile in den Mund fliegen. Nicht einmal von der allmächtigen Interpunktion werden die Blindtexte beherrscht – ein geradezu unorthographisches Leben. Eines Tages aber beschloß eine kleine Zeile Blindtext, ihr Name war Lorem Ipsum, hinaus zu gehen in die weite Grammatik. Der große Oxmox riet ihr davon ab, da es dort wimmele von bösen Kommata, wilden Fragezeichen und hinterhältigen Semikoli, doch das Blindtextchen ließ sich nicht beirren.     \end{document}      And here is the not-so-nice output: ![enter image description here](http://i.stack.imgur.com/o73cW.png)


title: Installing tabu.sty with MacTeX 2010.

text: I use MacTeX 2010, and I need to install tabu.sty. I run tlmgr to install the package, but without luck.               > sudo tlmgr install tabu.sty          tlmgr: package repository http://ctan.math.utah.edu/ctan/tex-archive/systems/texlive/tlnet     package tabu.sty not present in package repository.        * What would be the easiest way to install tabu.sty?    * Why tabu.sty is not in repository?


title: TikZ: Using "intersection of" as end coordinate for path, doesn't get all the way there

text: I'm having some problems with my figure: I want the thick arrows (labeled epsilon+ and epsilon-) to extend all the way to the intersections they are pointing towards. If I change the line length in the "intersection of" statement like:               (intersection of 100:2--+10:100 and 30:2--+120:100)      i.e. 100 instead of 4, the arrows get longer, but still not all the way there... What explains this behaviour? Is it caused by the relative coordinates specifying the lines? Do lines have to actually intersect to specify a coordinate using the "intersection of" or are they extended as needed to perform the calculation? (In my case, they are, but just wondering) This is my first figure made with TikZ, and all input is appreciated. I'm thinking of resorting to using GeoGebra and exporting as TikZ or PDF, but I haven't quite given in yet. Kind regards, Snorre Olsen ![The produced image](http://i.stack.imgur.com/Z4FUO.jpg)               \documentclass[•]{article}     \usepackage{tikz}     \usepackage{amsmath}          \begin{document}          \begin{tikzpicture}[scale=1]     \tikzstyle weak=[gray, very thin, text=black]     % Direction arrows     \draw[->] (0,0) -- (210:6) node[below] {To base station B};     \draw[->] (0,0) -- (280:4) node[below] {To base station A};     \draw (210:0.5) arc(210:280:0.5) node[midway, below] {$\gamma$};     % Shifted versions of LoP's     \draw[weak] (0,0) -- node[left] {$\Delta_\text{A+}$} (100:2) +(190:4) -- +(10:4) node[right] {LoP$_\text{A+}$};     \draw[weak] (0,0) -- node[below right] {$\Delta_\text{B+}$} (30:2)                 +(120:4) -- +(300:4) node[below] {LoP$_\text{B+}$};     \draw[weak] (0,0) -- node[right, black] {$\Delta_\text{A-}$}(280:2)                 +(190:4) -- +(10:4) node[right] {LoP$_\text{A-}$};     % Resulting error vectors     \draw[->,thick] (0,0) -- node[above left] {$\epsilon_+$}(intersection of 100:2--+10:4 and 30:2--+120:4);     \draw[->,thick] (0,0) -- node[below] {$\epsilon_-$}(intersection of 280:2--+10:4 and 30:2--+300:4);     \end{tikzpicture}          \end{document}


title: Type regular documents using regular characters in Latex?

text: I am typing letters in Latex and I would like to just allow characters such as & and ' to be treated as regular characters and not latex related commands. Is there a simple way to this? Thanks


title: Vertical lines spanning only certain rows in matrix

text: ![enter image description here](http://i.stack.imgur.com/MXfTp.png) As you can see in the picture, there is an annoying extra vertical line I want to remove: the one in row 2 at the matrix's start. The code for that is:               \begin{array}{|c|c|c|c|}     \multicolumn{2}{r}{}\\\cline{1-1}     -1 \\ \cline{1-2}      & -1 \\ \cline{2-4}     \multicolumn{1}{r}{} & & 0 & -1 \\ \cline{3-4}     \multicolumn{1}{r}{} & & 1 & -2 \\\cline{3-4}     \end{array}=\left(\begin{array}{cccc}     -1 & 0 & 0 & 0 \\     0 & -1 & 0 & 0 \\     0 & 0 & 0 & -1 \\     0 & 0 & 1 & -2     \end{array}\right).      So, is there a more logical way of getting a vertical column separator line to span only certain rows other than making part of it vanish with `\multicolumn`? How do I remove that extra vertical line? Is there a way to draw the horizontal line on top of cell `1,1` that doesn't add an extra line at the top? **Update** : If I put `\multicolumn` in the second row, the vertical line on the right of that row's first cell also vanishes, which I do not want. That's why I didn't put it and why I asked this question.


title: Unknown compilation error

text: I have a really strange compilation error in LaTeX. What is wrong with this piece of code which LaTeX sees but won't say. I really would like to say more about this problem, but it is really mysterious.               \documentclass[•]{article}          \usepackage{booktabs}     \begin{document}     % Table generated by Excel2LaTeX from sheet 'Arkusz2'     %\begin{tabular}{rrrrrrrr}     %\begin{tabular}{rr}     %\toprule     %f & r     %\end{tabular}     % Table generated by Excel2LaTeX from sheet 'Arkusz2'     \begin{tabular}{rrrrrrrr}                  DG &            &                       DGALG &            &                        DJ &            &                           BR &            \\               12.0  &        3.92  &         27.5  &         4.9  &      14.0  &     21.56  &        24.5  &     12.74  \\               38.5  &        6.86  &         48.5  &         8.82  &         43.0  &     13.72  &        61.5  &     12.74  \\               54.5  &        26.46  &        69.5  &         8.82  &         24.5  &     10.78  &        66.5  &         6.86  \\               60.0  &        1.96  &         85.5  &         14.7  &         30.0  &     11.76  &        75.5  &         8.82  \\               74.5  &        6.86  &         87.0  &         7.84  &         44.5  &     36.26  &        87.0  &         5.88  \\               94.5  &        4.9  &      103.5  &        18.62  &        24.0  &         19.6  &         90.0  &     15.68  \\               96.5  &        24.5  &     108.5  &        6.86  &         57.5  &         34.3  &         72.0  &         5.88  \\               94.5  &        6.86  &     108.5  &        26.46  &        67.0  &         3.92  &         89.5  &     18.62  \\              106.5  &        12.74  &        127.5  &        2.94  &         73.5  &         6.86  &         84.5  &         4.9  \\              102.0  &        15.68  &        134.0  &        5.88  &         55.0  &         19.6  &     102.0  &        7.84  \\               73.35 &              &       90.0 &              &       43.3 &              &       75.3 &              \\                                  SH &            &                       SHALG &            &                        RD &            &                       DIF &            \\                  45.0  &     41.16  &        8.0  &          0.0  &      36.0  &         3.92  &         55.0  &     50.96  \\                  61.0  &     13.72  &        32.5  &     26.46  &        30.0  &         1.96  &         65.5  &     36.26  \\                  46.0  &     33.32  &        61.5  &         14.7  &         36.5  &     65.66  &        67.5  &     32.34  \\                  44.0  &     33.32  &        75.5  &         44.1  &         58.5  &     12.74  &        53.5  &     12.74  \\                  74.0  &         7.84  &     100.5  &        8.82  &         55.0  &         7.84  &         76.0  &     17.64  \\                  82.5  &         8.82  &         88.0  &     27.44  &        76.5  &     49.98  &        86.5  &     40.18  \\                  92.5  &         24.5  &     100.0  &        33.32  &        76.5  &         14.7  &     103.5  &        14.7  \\                  92.0  &         1.96  &     100.0  &        11.76  &        71.0  &         7.84  &     108.0  &        11.76  \\              119.5  &        4.9  &      118.5  &        8.82  &         75.5  &     10.78  &        101.5  &        0.98  \\              107.5  &        22.54  &        126.5  &        2.94  &         97.0  &     21.56  &        112.0  &        3.92  \\                76.4 &              &       81.1 &              &      61.25 &              &       82.9 &              \\                                  DIFALG &            &                           GR &            &                       CUST &            &                         CUST2 &                           \\                  28.0  &         1.96  &         35.0  &     13.72  &        25.0  &     11.76  &        68.0  &     19.6      \\                  61.5  &     22.54  &        54.5  &     26.46  &        53.5  &         6.86  &         42.0  &     15.68     \\                  73.5  &         2.94  &         85.5  &     12.74  &        67.0  &         5.88  &         67.0  &     17.64     \\                  60.0  &     17.64  &        86.0  &         0.0  &      69.0  &         19.6  &         63.0  &     1.96      \\                  57.0  &         7.84  &         92.0  &     23.52  &        78.5  &         14.7  &         85.0  &     29.4      \\              100.0  &        23.52  &        115.0  &        3.92  &     104.0  &        27.44  &        91.0  &     5.88      \\                  70.5  &     30.38  &        113.5  &        18.62  &        121.0  &        0.0  &      68.0  &     1.96      \\                  86.5  &         14.7  &     126.0  &        9.8  &      121.0  &        25.48  &        96.5  &     20.58     \\                  72.5  &     16.66  &        115.5  &        0.98  &     122.0  &        21.56  &        95.0  &     13.72     \\                  94.5  &         8.82  &     135.0  &        11.76  &        108.5  &        6.86  &     104.0  &    15.68     \\                70.4 &              &       95.8 &              &      86.95 &              &      77.95 &              \\          \end{tabular}          % Table generated by Excel2LaTeX from sheet 'Arkusz2'     \begin{tabular}{rrrrrrrr}                  DG &            &                       DGALG &            &                        DJ &            &                           BR &            \\               79.5  &        30.38  &        98.0  &     21.56  &        38.0  &         1.96  &     121.5  &        4.9  \\              110.5  &        20.58  &        152.0  &        7.84  &         94.0  &         9.8  &      115.0  &        19.6  \\              123.0  &        29.4  &     160.5  &        12.74  &        90.0  &     41.16  &        105.0  &        33.32  \\              141.0  &        39.2  &     162.0  &        7.84  &         99.5  &     18.62  &        171.0  &        19.6  \\              156.0  &        11.76  &        186.5  &        2.94  &     108.5  &        6.86  &     170.0  &        3.92  \\              180.5  &        8.82  &     196.0  &        13.72  &        130.0  &        0.0  &      166.0  &        11.76  \\              179.0  &        21.56  &        192.5  &        2.94  &     136.0  &        21.56  &        161.5  &        24.5  \\              174.0  &        5.88  &     199.5  &        4.9  &      131.5  &        4.9  &      157.5  &        40.18  \\              189.0  &        29.4  &     211.5  &        4.9  &      142.0  &        11.76  &        168.5  &        22.54  \\              187.5  &        2.94  &     211.5  &        16.66  &        121.5  &        16.66  &        173.0  &        11.76  \\               152.0 &              &      177.0 &              &      109.1 &              &      150.9 &              \\                                  SH &            &                       SHALG &            &                        RD &            &                       DIF &            \\                  82.5  &         8.82  &     107.5  &        6.86  &     105.5  &        24.5  &     109.5  &        22.54  \\              126.5  &        28.42  &        114.5  &        40.18  &        94.5  &     81.34  &        131.5  &        0.98  \\              118.5  &        30.38  &        163.5  &        4.9  &      108.0  &        5.88  &     141.0  &        3.92  \\              124.5  &        26.46  &        185.0  &        19.6  &     131.5  &        14.7  &     155.0  &        3.92  \\              143.0  &        1.96  &     188.5  &        0.98  &     146.5  &        22.54  &        164.0  &        3.92  \\              162.0  &        3.92  &     193.0  &        7.84  &     174.5  &        6.86  &     173.5  &        38.22  \\              177.0  &        3.92  &     187.0  &        29.4  &     157.5  &        20.58  &        196.5  &        28.42  \\              176.5  &        18.62  &        195.5  &        18.62  &        193.5  &        0.98  &     196.0  &        3.92  \\              204.0  &        7.84  &     208.0  &        1.96  &     170.0  &        23.52  &        194.5  &        0.98  \\              186.0  &        23.52  &        200.5  &        8.82  &     176.0  &        3.92  &     210.5  &        0.98  \\              150.05 &              &      174.3 &              &     145.75 &              &      167.2 &              \\                                  DIFALG &            &                           GR &            &                       CUST &            &                         CUST2 &                           \\              119.5  &        14.7  &     108.0  &        41.16  &        106.5  &        24.5  &     125.5  &    12.74     \\              142.0  &        23.52  &        150.0  &        3.92  &     105.0  &        0.0  &      128.0  &    23.52     \\              158.0  &        49.0  &     197.0  &        5.88  &     141.0  &        1.96  &     168.5  &        0.98      \\              173.0  &        29.4  &     172.5  &        16.66  &        171.5  &        30.38  &        174.5  &    40.18     \\              180.5  &        0.98  &     180.5  &        6.86  &     194.5  &        4.9  &      188.5  &    18.62     \\              178.5  &        28.42  &        203.5  &        20.58  &        195.5  &        0.98  &     202.5  &    10.78     \\              202.5  &        14.7  &     197.5  &        24.5  &     208.0  &        11.76  &        205.5  &    20.58     \\              185.5  &        0.98  &     212.5  &        8.82  &     205.5  &        8.82  &     204.5  &        0.98      \\              194.0  &        3.92  &     217.5  &        12.74  &        194.0  &        17.64  &        202.5  &        2.94      \\              175.0  &        31.36  &        209.0  &        15.68  &        202.5  &        0.98  &     201.0  &    13.72     \\              170.85 &              &      184.8 &              &      172.4 &              &      180.1 &              \\          \end{tabular}            % Table generated by Excel2LaTeX from sheet 'Arkusz2'     \begin{tabular}{rrrrrrrr}                  DG &            &                       DGALG &            &                        DJ &            &                           BR &            \\              115.0  &        1.96  &     137.5  &        10.78  &        115.5  &        14.7  &     169.5  &        16.66  \\              176.5  &        20.58  &        204.5  &        0.98  &     121.5  &        12.74  &        173.5  &        0.98  \\              187.0  &        27.44  &        209.0  &        19.6  &     134.0  &        15.68  &        179.0  &        19.6  \\              182.0  &        35.28  &        223.0  &        25.48  &        157.0  &        37.24  &        223.5  &        20.58  \\              202.0  &        19.6  &     233.0  &        9.8  &      152.0  &        1.96  &     212.0  &        23.52  \\              238.5  &        6.86  &     235.5  &        12.74  &        168.0  &        19.6  &     210.5  &        18.62  \\              229.0  &        13.72  &        240.5  &        0.98  &     183.5  &        6.86  &     217.5  &        12.74  \\              227.5  &        0.98  &     234.0  &        7.84  &     169.0  &        23.52  &        219.5  &        20.58  \\              224.0  &        3.92  &     239.5  &        2.94  &     190.5  &        12.74  &        207.0  &        17.64  \\              228.5  &        16.66  &        245.5  &        2.94  &     190.0  &        27.44  &        218.5  &        16.66  \\               201.0 &              &      220.2 &              &      158.1 &              &     203.05 &              \\                                  SH &            &                       SHALG &            &                        RD &            &                       DIF &            \\              144.5  &        38.22  &        133.5  &        42.14  &        182.5  &        4.9  &      167.0  &        52.92  \\              179.5  &        30.38  &        171.0  &        21.56  &        165.0  &        15.68  &        180.0  &        13.72  \\              204.5  &        14.7  &     220.5  &        10.78  &        168.5  &        59.78  &        197.5  &        2.94  \\              201.5  &        18.62  &        226.0  &        5.88  &     192.0  &        15.68  &        216.0  &        11.76  \\              215.0  &        19.6  &     233.5  &        6.86  &     200.5  &        6.86  &     221.5  &        6.86  \\              203.0  &        0.0  &      229.0  &        0.0  &      205.5  &        26.46  &        233.0  &        5.88  \\              207.0  &        27.44  &        230.5  &        14.7  &     212.0  &        3.92  &     234.0  &        3.92  \\              221.0  &        3.92  &     235.5  &        8.82  &     218.0  &        17.64  &        238.5  &        6.86  \\              235.5  &        24.5  &     243.0  &        0.0  &      222.5  &        2.94  &     239.5  &        2.94  \\              237.0  &        9.8  &      243.0  &        3.92  &     230.5  &        6.86  &     241.0  &        3.92  \\              204.85 &              &     216.55 &              &      199.7 &              &      216.8 &              \\                                  DIFALG &            &                           GR &            &                       CUST &            &                         CUST2 &                           \\              173.0  &        0.0  &      178.5  &        24.5  &     185.0  &        0.0  &      163.5  &        53.9      \\              219.0  &        19.6  &     216.5  &        12.74  &        196.0  &        9.8  &      208.5  &    16.66     \\              200.0  &        3.92  &     225.0  &        5.88  &     200.0  &        25.48  &        221.0  &        0.0   \\              229.5  &        6.86  &     237.0  &        3.92  &     220.5  &        2.94  &     232.5  &        2.94      \\              227.0  &        25.48  &        235.0  &        9.8  &      223.0  &        21.56  &        238.5  &    10.78     \\              235.5  &        4.9  &      235.0  &        9.8  &      244.5  &        2.94  &     226.0  &        1.96      \\              242.5  &        8.82  &     236.0  &        0.0  &      235.5  &        2.94  &     241.0  &        9.8   \\              232.0  &        0.0  &      246.0  &        0.0  &      240.5  &        16.66  &        245.5  &        0.98      \\              232.0  &        11.76  &        246.0  &        5.88  &     242.5  &        4.9  &      240.5  &        6.86      \\              229.5  &        10.78  &        241.5  &        0.98  &     237.5  &        18.62  &        242.0  &    13.72     \\               222.0 &              &     229.65 &              &      222.5 &              &      225.9 &              \\          % Table generated by Excel2LaTeX from sheet 'Arkusz2'     \begin{tabular}{rrrrrrrr}                  DG &            &                       DGALG &            &                        DJ &            &                           BR &            \\              201.0  &        5.88  &     173.0  &        33.32  &        164.0  &        5.88  &     196.5  &        49.98  \\              226.0  &        0.0  &      232.5  &        18.62  &        175.0  &        0.0  &      215.5  &        18.62  \\              223.0  &        17.64  &        244.5  &        4.9  &      180.0  &        11.76  &        208.0  &        1.96  \\              234.0  &        1.96  &     251.0  &        0.0  &      183.5  &        2.94  &     248.0  &        5.88  \\              240.5  &        2.94  &     254.0  &        5.88  &     172.0  &        1.96  &     245.5  &        4.9  \\              252.5  &        4.9  &      256.5  &        0.98  &     204.5  &        8.82  &     247.5  &        2.94  \\              253.0  &        1.96  &     258.5  &        4.9  &      222.0  &        11.76  &        243.0  &        9.8  \\              250.0  &        7.84  &     259.0  &        0.0  &      223.0  &        23.52  &        246.0  &        5.88  \\              248.5  &        2.94  &     259.5  &        2.94  &     215.5  &        0.98  &     249.0  &        3.92  \\              252.5  &        4.9  &      260.0  &        5.88  &     229.5  &        0.98  &     250.0  &        0.0  \\               238.1 &              &     244.85 &              &      196.9 &              &      234.9 &              \\                                  SH &            &                       SHALG &            &                        RD &            &                       DIF &            \\              200.0  &        9.8  &      194.0  &        5.88  &     212.0  &        23.52  &        212.5  &        0.98  \\              214.0  &        19.6  &     216.0  &        13.72  &        216.0  &        25.48  &        226.5  &        8.82  \\              229.0  &        3.92  &     243.5  &        6.86  &     227.5  &        10.78  &        243.5  &        6.86  \\              228.5  &        0.98  &     245.5  &        4.9  &      223.0  &        5.88  &     246.5  &        4.9  \\              242.0  &        9.8  &      251.5  &        4.9  &      236.5  &        0.98  &     247.5  &        2.94  \\              237.5  &        0.98  &     255.0  &        0.0  &      237.5  &        10.78  &        248.5  &        4.9  \\              247.0  &        9.8  &      252.0  &        5.88  &     243.5  &        6.86  &     258.0  &        5.88  \\              252.0  &        9.8  &      253.0  &        3.92  &     244.0  &        5.88  &     255.5  &        2.94  \\              254.5  &        2.94  &     257.0  &        3.92  &     242.5  &        4.9  &      255.5  &        0.98  \\              260.0  &        1.96  &     259.0  &        1.96  &     244.5  &        6.86  &     257.0  &        3.92  \\              236.45 &              &     242.65 &              &      232.7 &              &      245.1 &              \\                                  DIFALG &            &                           GR &            &                       CUST &            &                         CUST2 &                           \\              212.5  &        4.9  &      229.0  &        5.88  &     213.0  &        9.8  &      226.0  &        5.88      \\              244.0  &        5.88  &     237.5  &        2.94  &     212.0  &        23.52  &        245.5  &        14.7      \\              239.5  &        0.98  &     243.5  &        2.94  &     223.5  &        8.82  &     252.0  &        5.88      \\              249.0  &        1.96  &     250.0  &        1.96  &     240.5  &        4.9  &      257.5  &        0.98      \\              250.0  &        0.0  &      249.5  &        4.9  &      253.5  &        4.9  &      255.5  &        0.98      \\              256.0  &        1.96  &     251.0  &        1.96  &     256.5  &        8.82  &     260.5  &        6.86      \\              250.5  &        2.94  &     254.0  &        1.96  &     257.5  &        4.9  &      255.0  &        3.92      \\              255.5  &        2.94  &     255.5  &        4.9  &      257.0  &        3.92  &     257.5  &        2.94      \\              257.0  &        0.0  &      257.5  &        2.94  &     256.5  &        0.98  &     256.5  &        0.98      \\              254.0  &        0.0  &      260.0  &        3.92  &     259.0  &        1.96  &     261.5  &        8.82      \\               246.8 &              &     248.75 &              &      242.9 &              &     252.75 &              \\     \end{tabular}     \end{document}


title: Create a copy of every page with a watermark

text: I often print letters with latex and I want to print every letter twice : once normal and once with a watermark ('COPY'). Is there any way to produce a single pdf file containing twice the letter, once with and once without the watermark as described ? Until now, I did write the document in a file, say foo.tex and then imported it twice but it is not a good procedure (for reverse search for example)               \import{foo}     \newpage     \import{foo} --with some command for a watermark--


title: Need help with long and wide table; tried longtabu, longtable, sidewaystable and nothing seems to fit!

text: I've literally been spending hours, trying to fit this long and wide table with a series of packages: tabu, longtabu, tabularx, sidewaystable, but nothing seems to fit.   This is for a thesis so I rather prefer not to use sidewaystable ... only it is really not readable in any other way. Can someone help me with this:               \begin{sidewaystable}[!ht]     \medskip     \resizebox{\textwidth}{!}{%     \tabcolsep=2pt       \centering        \begin{tabularx}{\textwidth}{lXXX}         \toprule         \multicolumn{1}{c}{\textbf{Descrição da variável explicativa}} & \multicolumn{1}{c}{\textbf{Significado dos valores para variáveis binárias}} & \textbf{Atributo correspondente} & \multicolumn{1}{c}{\textbf{Feature class em que entra}} \\         \midrule         \multicolumn{1}{l}{$F_{Tit}$=Tráfego de entrada em veículos por dia (TMDA) para a intersecção i e ano t} & \multicolumn{1}{l}{N.A.} & \multirow{2}[4]{*}{TMDA} & \multicolumn{1}{l}{Nós} \\         \multicolumn{1}{l}{$F_{Ti}$=Tráfego, em veículos por dia (TMDA) nos dois sentidos de circulação do segmento i} & \multicolumn{1}{l}{N.A.} &    & Arcos \\         $LB_i$=Equilíbrio de vias na interseção i (i.e., nº igual de vias em todos os ramos de entrada) & \multicolumn{1}{l}{0 - não} & \multirow{2}[2]{*}{LB} & \multirow{2}[2]{*}{Nós } \\            & \multicolumn{1}{l}{1 - sim} &    &  \\         $LEG_i$ =Número de ramos de entrada da interseção/ rotunda i & \multicolumn{1}{l}{0 - 3 ramos} & \multirow{2}[2]{*}{LEGS} & \multirow{2}[2]{*}{Nós } \\            & \multicolumn{1}{l}{1 - 4 ramos} &    &  \\         $LMAJT7_i$=Número de vias na direção principal da interseção i é igual a 3 ou superior & \multicolumn{1}{l}{0 - não} & \multirow{2}[2]{*}{LMAJ} & \multirow{2}[2]{*}{Nós } \\            & \multicolumn{1}{l}{1 - sim} &    &  \\         \multicolumn{1}{l}{$LOW_i$ =Número de ramos com sentido de circulação único na intersecção i} & \multicolumn{1}{l}{N.A.} & LOW & Nós \\         \multicolumn{1}{l}{$LWMAJ_i$=Largura média das vias de entrada na direcção principal na intersecção i(m)} & \multicolumn{1}{l}{N.A.} & \multirow{2}[4]{*}{LW} & \multirow{2}[4]{*}{Nós } \\         \multicolumn{1}{l}{$LWMINJ_i$=Largura média das vias de entrada na direcção secundária na intersecção i(m)} & \multicolumn{1}{l}{N.A.} &    &  \\         \multicolumn{1}{l}{$L_i$ =Comprimento total do segento i (m)} & \multicolumn{1}{l}{N.A.} & \textit{Shape\_length} & Arcos \\         $MMAJ_i$=Presença de separador central nos dois ramos da direcção principal i & \multicolumn{1}{l}{0 - não} & \multirow{2}[2]{*}{N.D.} & \multirow{2}[2]{*}{N.D.} \\            & \multicolumn{1}{l}{1 - sim} &    &  \\         $NLANES4_i$=Número total de vias igual ou superior a 4 para o segmento i & \multicolumn{1}{l}{0 - não} & \multirow{2}[1]{*}{NLANES4} & \multirow{2}[1]{*}{Arcos} \\            & \multicolumn{1}{l}{1 - sim} &    &  \\         $RTPMAJ_i$=Presença de vias exclusivas de viragem à direita na direcção principal na intersecção i & \multicolumn{1}{l}{} & \multirow{4}[3]{*}{RTP} & \multirow{4}[3]{*}{Nós} \\            & \multicolumn{1}{l}{0 - não} &    &  \\         $RTPMIN_i$=Presença de vias exclusivas de viragem à direita na secundária principal na intersecção i & \multicolumn{1}{l}{1 - sim} &    &  \\            & \multicolumn{1}{l}{} &    &  \\         $TCD_i$=Sistema de controlo de tráfego na intersecção i & \multicolumn{1}{l}{0 - não} & \multirow{2}[2]{*}{TCD} & \multirow{2}[2]{*}{Nós } \\            & \multicolumn{1}{l}{1 - sim} &    &  \\         \bottomrule         \end{tabularx}%         }        \caption{Correspondência entre variáveis explicativas e atributos nas entidades geográficas.}          \label{tab:vars}%     \end{sidewaystable}%      To look more like this -> http://d.pr/f/SxgX


title: Different margins for document title only

text: I am trying to follow the formatting requirements for a specific conference which state that the document title must have 1.5 inch left and right margins while the rest of the paper must have 1 inch margins. I have tried the solution shown here: Different margins for title page However, I need the text following the title to be on the same page as the title. How can I get different margins for the document title and the document text while both appear on the same page?               \documentclass[12pt]{article}          \usepackage[english]{babel}     \usepackage[utf8x]{inputenc}     \usepackage{amsmath}     \usepackage{graphicx}     \usepackage[top=1in,bottom=1in,right=1in,left=1in]{geometry}     \usepackage{times}     \usepackage{lipsum}          \newgeometry{top=1in,bottom=1in,right=1.5in,left=1.5in}     \title{A long title that wraps onto a second line to show where the margin is}     \author{\normalsize Author A. Name\\\normalsize email@example.com\\\normalsize Awesome Department\\\normalsize Big Deal University}     \date{}          \begin{document}          \maketitle          \restoregeometry          \section{Intro}     \lipsum[1-5]          \end{document}


title: Is there a formula to determine the maximum value arcsepB such that the arrow head looks best?

text: I want to put an arrow head at the middle of an arc. Unfortunately, `ArrowInside` is not available for `\psarc`. The possible way is to construct it with 2 arcs as follows. Leaving `arcsepB` with its default value will produce a weird effect, that is why I have to set `arcsepB` to a negative length. I hate a trial and error approach to get the best value for it. I believe there is a formula to exactly specify the maximum value for it. ![enter image description here](http://i.stack.imgur.com/HqnXA.gif)               \documentclass[pstricks,border=12pt]{standalone}     \usepackage{multido}     \psset{linewidth=5\pslinewidth}     \begin{document}     \multido{\n=0.0+-0.5}{30}{%     \begin{pspicture}(3,3)     \psarc[arrowscale=2,arcsepB=\n pt]{->}(0,0){3}{0}{45}     \psarc(0,0){3}{45}{90}     \rput(1.5,1.5){\n pt}     \end{pspicture}}     \end{document}      Is there a formula to determine the maximum value `arcsepB` such that the arrow head looks best? The following is taken from PSTricks documentation (use `texdoc pstricks`), it might be useful for you. ![enter image description here](http://i.stack.imgur.com/jsViC.png) With an elementary geometry (as opposed to differential geometry or topology), I should find the formula.


title: using aligned or split inside align*

text: I am trying to use `aligned` or `split` inside an `align*` environment. However, I keep getting an error missing `}` or missing `\right.`. However, this isn't the case.               \documentclass{article}     \usepackage{mathtools}     \newcommand{\unit}[1]{\hat{\mathbf{#1}}}     \begin{document}     \begin{align*}       \nabla\times\mathbf{F} &=       \begin{aligned}         \frac{1}{h_1h_2h_3}\left[h_1\unit{u}_1\left(             \frac{\partial}{\partial u_2}(h_3F_3) - \frac{\partial}{\partial u_3}             (h_2F_2)\right) &+ h_2\unit{u}_2\left(             \frac{\partial}{\partial u_3}(h_1F_1) -             \frac{\partial}{\partial u_1}(h_3F_3)\right)\right.\\           &\left.+ h_3\unit{u}_3\left(\frac{\partial}{\partial u_1}(h_2F_2) -             \frac{\partial}{\partial u_2}(h_1F_1)\right)\right]       \end{aligned}     \end{align*}     \end{document}      If I removed `aligned`, `\right.`, and `\left.`, the document formats correctly so I know there isn't a missing `}`. I have added in the `\right.` and `\left.` to correspond with breaking of the equation so that isn't missing either.


title: Calendar package

text: I'm trying to use the `calendar` package but I've a problem. The `\DaysInWeek` command doesn't work. I can't delete the Saturday and Sunday columns. Does anyone have a solution? Here is my code (I use the template found on latextemplate.com):               \documentclass[]{article}     \usepackage{calendar}          \begin{document}     \pagestyle{empty}     \noindent     \StartingDayNumber=2          \begin{calendar}{\hsize}          \day{}{My appointment}          \day{}{}          \day{}{}          \day{}{}          \day{}{}           \finishCalendar     \end{calendar}     \end{document}      I also use a `calendar.sty` found on the same address.


title: Long and rescaled xtable

text: Is there a way to use `scalebox` along with `tabular.environment='longtable'` when printing a long and wide xtable? When I give both of them I get an error:               Running xelatex.exe on my_file.tex...failed


title: Set up latexmk for pdflatex in texlive

text: How do I set up for latexmk compilation for pdflatex in texlive? I have the following (see picture) setup for latexmk compilation for xelatex (I just found it somewhere), but I don't know what to change for pdflatex. ![enter image description here](http://i.stack.imgur.com/qI087.png)


title: No indention for wrapfigure captions

text: I want to remove the indention of wrapfigure captions but NOT for normal figure captions. Is this possible?               \documentclass{scrbook}     \usepackage[english]{babel}     \usepackage[T1]{fontenc}     \usepackage{wrapfig}     \usepackage{blindtext}          \begin{document}         \begin{figure}[tbp]           \fbox{\begin{minipage}[t]{\textwidth}A figure!\end{minipage}}           \caption{\blindtext}         \end{figure}%         \begin{wrapfigure}{l}{5cm}           \fbox{\begin{minipage}[t]{5cm}A figure!\end{minipage}}           \caption{For this caption I don't want an indention!}         \end{wrapfigure}         \blindtext     \end{document}


title: How to color citation brackets using hyperref?

text: I want to color the brackets of inline citation like: **some text[9]** where it is written in latex like this `some text\cite{9}`. Now hyperref only colors the number "9" without the brackets "[]". Is there any workaround for this?


title: Create a web site with Tex/Latex Support + Preview feature

text: (This is a question that is more or less not a Tex/Latex question, I guess. But it still relates to Tex/Latex.) I want to create a new web site. Here is the goals for that site:   * It will be used to write things about mathematics.   * Different from Wikipedia and PlanetMath, its goal is to make things about a subject into a (mathematical) book. This means:     * For the subject "Differential Geometry", there is a page which is the "Table of Content".     * When a user click the link "Chapter 3 : Curvature", it will go to the page of chpater 3. This page has contents before the 1st section of chapter 3 starts.     * I wish that there is a way to convert each subject in this site into a PDF file. This output PDF file will looks just like a mathematical book!     * This site has full Tex/Latex support. So people can write things by using Tex/Latex. I also want this site has a preview feature like sites on StackExchange: when people type Tex/Latex code, they can preview the output.   * The people can contribute to this project. In order to have the features listed above, could you suggest me some references to learn. For example, how to make this site with Tex/Latex support + Preview. (With these features, it can be used as an online Tex/Latex Editor.)


title: How to include a 'signature' using a different font and color than the main text?

text: Is it possible to make something like this using LaTeX? ![enter image description here](http://i.stack.imgur.com/obw3C.jpg)


title: how to use math mode inside align*

text: why does this give an error?               \begin{align*}         $\sum_{i=0}^K n_{\text{i}} * P *  1000$     \end{align*}      why cant I use align* for my math formula which includes a summation?


title: Figure keeping vertically

text: I have a large figure (more width than height) to place vertically (rotate the figure 90 degree anti clockways direction to the way we used to place the fig in latex) to use maximum space of the page. Please let me know How can I do. Currently coded as               \begin{figure*}          \centering          {\includegraphics[width=.9\paperwidth]{picture/Exp.png}}          \caption{blablaa}          \label{fig:Expdiagram}          \end{figure*}      Thanks


title: Problem with \addtocounter that doen't affect \label

text: I've a little issue with `\label`. here's the code:               \chapter{previous chapter}          \phantomsection     \addtocounter{chapter}{1}     \addcontentsline{toc}{chapter}{\Alph{chapter}~~ the chapter}     \label{chap:thechapter}          \chapter{next chapter}      and then in another part of the document I use: `\ref{chap:thechapter}` The problem is that it doesn't give the correct number, but the one of the previous chapter. Like if the command `\addtocounter` had an effect only on `\addcontentsline` but not on `\label`. Does anyone know how to solve this problem?


title: Defining multipart nested node with pictogram in north east corner

text: I'm trying to set up a node style that allows me to draw nodes like UML2 components diagrams, etc. What I consider as a good idea for a syntax is:               \node {node}         child{              \node {other node}         };      which is good, but I don't know how I can format this as rectangle, and place component symbols in the north east corner. `tikz-uml` is not what I need, because it has an interface that is different than that of TikZ. I've also tried to typeset it as:               \documentclass{standalone}     \usepackage[utf8]{inputenc}     \usepackage{tikz}          \begin{document}        \begin{tikzpicture}[remember picture]           \node[draw, execute at begin node = \begin{tikzpicture}, execute at end node = \end{tikzpicture}] at (-1,-1)           {              \node[draw,minimum width=20pt] at (-1,1) {node};           };           \node[draw] at (1,1)           {              \begin{tikzpicture}                 \node[draw,minimum width=20pt] at (-1,1) {node};              \end{tikzpicture}           };        \end{tikzpicture}     \end{document}      But there is a problem with nested nodes. **The problem is that`execute at begin node` affects sub-nodes.** * * * I'm searching for something that allows me easly to make a node that is a UML2 component. No matter how, but I want to create it writing:               \node [umlcomponent] ...      or by               \umlcomponent[fill=red...] at (2,2) {damn UML component} ...     \draw (1,1) umlcomponent {damn uml component} ...      So there is my question:   **How can I define a custom TikZ command/macro/something that allows me to reach the syntax** Nested node class with pictogram decoration


title: Vertical space before environments

text: How can I control the vertical space before an environment, e.g., taublar or minipage. Here is an example that reproduces my problem               \documentclass{article}     \begin{document}     \noindent TEXT-A\vspace{5pt}\\     TEXT-B\\TEXT-C     \\[2em]     \noindent TEXT-D\vspace{5pt}\\     \begin{tabular}{@{}l}TEXT-E\\TEXT-F \end{tabular}     \end{document}      The spacing between TEXT-A and TEXT-B is different from the spacing between TEXT-D and TEXT-E: ![alt text](http://i.stack.imgur.com/9j5EL.png) I have learned so far that the space between TEXT-D and TEXT-E is normal if I delete `\\\TEXT-F`: ![alt text](http://i.stack.imgur.com/yqBqa.png) Any help would be appreciated!


title: miktex configuration - editor

text: I would like to alter the configuration on my MikTeX 2.9 system. I'm using the portable version. A problem I have is that when I run initexmf it always uses Microsoft notepad to read configuration files. Is it possible to change this? Notepad appears to expect only carriage return / linefeed pairs to delimited line endings. And then things get mangled when I cut and paste to/from other text editors.


title: MikTeX package manager unable to download any packages

text: I used to be able to download packages but recently I have been unable to do so for quite sometime now. It gives the message:               get proxy host by name failed in tcp_connect()      I don't remember doing anything different except that I have moved from another location and I am using another broadband connect, but I am not sure if it is related to this problem.


title: centering rotated tikz labels

text: I have a series of five image generated from a code that I wish to include one under the other in a figure. I would like to include labels on the left, right and bottom of each of them (left and bottom are identical to each of them). However I would like the side labels to be rotated by 90°, but it seems that by default the point of rotation is the bottom right of the label on the left and bottom left for the one on the right. I cannot figure out how to rotate the label from its centre.               \PassOptionsToPackage{demo}{graphicx}     \documentclass[tikz]{standalone}          \begin{document}          \begin{tikzpicture}     \node[draw,         label={[rotate=90]west:years $\rightarrow$},         label={south:some other text},         label={[rotate=-90,text=gray]east:OtherLabel}]         {\includegraphics[width=12cm,height=2.4cm]{somefile1}};     \node[draw, yshift=2.5cm,         label={[rotate=90]west:years $\rightarrow$},         label={south:some other text},         label={[rotate=-90,text=gray]east:OtherLabel}]         {\includegraphics[width=12cm,height=2.4cm]{somefile2}};     \end{tikzpicture}          \end{document}      ![enter image description here](http://i.stack.imgur.com/day1p.png)


title: Replace Type 3 with Type 1 fonts in a PDF

text: Is there any way to directly manipulate a PDF file with Type 3 embedded fonts (yes, those PDF generated from old tex/dvips and CM fonts), and replace them by decent Type 1 fonts? I know that once printed they should look ok, but I'm using a Kindle to read them and they look hideous.


title: Use beamer in article mode with hyperref

text: I want to create an article version of a `beamer` document. The following MWE stops with error `! LaTeX Error: \beamer@descriptionitem undefined.`:               \documentclass[class=scrartcl]{beamer}     \usepackage{beamerbasearticle}     \usepackage{hyperref}          \begin{document}     \begin{frame}     Content     \end{frame}     \end{document}      I use `beamer.cls` 2013/01/04 3.26 and `hyperref.sty` 2012/11/06 v6.83m (Actual TeXlive 2012) If I remove hyperref everything works fine, but I need hyperref (my document contains `hyperref`-commands like `\href`). The sequence of loading the packages makes no difference, also `\documentclass[class=article, hyperref]{beamer}` does not work. Any hints what I can do? Edit: In meantime I found a fix for me: When I replace `hyperref` with `nohyperref` the document is created without error. But it's not a real solution, with `nohyperref` I get no active links.


title: psmatrix with two ncboxes in it

text: Can somebody help me to generate two overlapping boxes in a psmatrix? What I need is an ncbox from {3,3} to {8,8} and one from {3,3} to {3,8}. I know it's possible to draw them in a separate figure, but I can't manage to put them in the same psmatrix.               \documentclass[12pt,oneside,english]{book}     \usepackage[T1]{fontenc}     \usepackage[latin9]{inputenc}     \usepackage{geometry}     \geometry{verbose,tmargin=3cm,bmargin=3cm,lmargin=3cm,rmargin=3cm}     \pagestyle{plain}     \setcounter{secnumdepth}{3}     \setcounter{tocdepth}{3}     \usepackage{float}     \usepackage{amsmath,qtree, amssymb, amsthm, graphicx,graphics, makeidx,esint,bm,pstricks,pst-node,pst-tree}               \begin{document}     \begin{figure}[H]     \begin{align*}     \psmatrix[colsep=0.7cm,rowsep=0.15cm]     \cdot \\      \cdot  &  \cdot \\      \cdot  &  \cdot  &  \cdot \\      \cdot  &  \cdot  &  \cdot & \cdot \\      \cdot  &  \cdot  &  \cdot  &  \cdot &  \cdot \\      \cdot  &  \cdot  &  \cdot  &  \cdot  &  \cdot  &  \cdot \\      \cdot  &  \cdot  &  \cdot &  \cdot  &  \cdot  &  \cdot  &  \cdot \\      \cdot  &  \cdot  &  \cdot &  \cdot  &  \cdot  &  \cdot  & \cdot  & \cdot      \ncbox[nodesep=.25cm,boxsize=.25,linearc=.2]{3,3}{8,8}     \endpsmatrix     \end{align*}\caption{\label{fig:equal sets in matrix}}     \end{figure}          \end{document}


title: Which \bibliographystyle covers which BibTeX entries?

text: I fail in finding overview of default bibliography styles. I am curious which is covering which fields. So far I know that difference between `alphaurl` and `alpha` is field `url`. What are other differences between style ? I am exporting my collection to bibtex file, so I'd like to know which fields are going to stay, which are going to disappear.


title: Draw lines by specifying angles?

text: I'd like to be able to draw lines in LaTeX by specifying an angle, rather than specifying it like so               \put(0,0){\line(2,1){3}}      Is this possible? I've looked at `tikz` and `tikz-euclid`. I've even tried installing `tikz-euclid`, but I couldn't even do that (I found these but couldn't find the `.ins` for `tikz-euclid`). And I'm not sure if that's what I want anyway. What do I need to do to accomplish this?


title: Citations and Bibliography

text: Before I begin: I'm sorry for the probably rudimentary question I'll be asking. Please be sure it's not for lack of trying/research. I'm using `TeXShop`. I've got my document. I have a `.bib` file, saved in the same folder as all the stuff `TeXShop` generates when I run it (I'm using `JabRef`). I cannot get in-text citations or a bibliography running. I have at the bottom of my document `\bibliographystyle{plain}` and `\bibliography {$Users/my name/Documents/Latex/name of bib file}` I have also put `\cite{Ref_key6}` in the document. All I'm getting is when I look at the document after hitting "typeset" is a `[?]` where the citation should be and a section called "References" with nothing written under it . If there is a relatively jargon-free explanation as to how to get `TeXshop` to see my `.bib` file and how to get my citations in I'd be deeply appreciative.


title: center a table that uses resizebox

text: I create a table that I would like centered on the page horizontally. I scale the table size using `\resizebox`. However, doing so, left aligns the table. How do I center it? Here's a MWE:               \documentclass[11pt,english,titlepage]{article}     \usepackage{graphicx}               \begin{document}          \begin{table}         \caption{mytable}         \resizebox{.5\textwidth}{!}{              \begin{centering}             \begin{tabular}{rrr}                 A                     & B                  & C \\                 \hline                 A1                   & B1             &C1\\                 A2                  & B2                  & C2 \\                 A3                    & B3             & C3 \\             \end{tabular}         \end{centering}         }     \end{table}          \end{document}


title: Variable-width horizontal rules with \cline intrude cell text

text: I have come to learn how to make a variable-width horizontal rule with **\hline** from the LaTeX companion and with **\cline** from Horizontal rule with adjustable height behaving like \cline{n-m}. But the problem with the horizontal **\cline** is that the rule intrudes on the texts in the cells below the **\cline**. However, **\hline** doesn't seem to have this intruding problem. The minimal working example below shows the differences.               \documentclass{article}     \usepackage{array}          \begin{document}          \newcolumntype{I}{!{\vrule width 3pt}}     \newlength\savedwidth     \newcommand\whline{\noalign{\global\savedwidth\arrayrulewidth\global\arrayrulewidth 6pt}%     \hline     \noalign{\global\arrayrulewidth\savedwidth}}     \begin{tabular}{|cIc|c|}\hline     A & B & C \\ \hline     X & Y & Z \\ \whline     100 & 10 & 1 \\ \hline     \end{tabular}          \renewcommand\whline[1]{\noalign{\global\savedwidth\arrayrulewidth\global\arrayrulewidth 6pt}%     \cline{#1}     \noalign{\global\arrayrulewidth\savedwidth}}     \begin{tabular}{|cIc|c|}\hline      A & B & C \\ \hline      X & Y & Z \\ \whline{1-3}      100 & 10 & 1 \\ \hline     \end{tabular}          \end{document}      ![Top picture essentially used \\hline; bottom one used \\cline.](http://i.stack.imgur.com/Hb5w2.png) Another problem with using **\cline** in the definition of the thick horizontal rule ( _whline_ above) is that a **\cellcolor** command will wipe out the portion of the horizontal rule that is above the cell, no matter how thick I defined the _whline_ to be. Using **\hline** in the definition of _whline_ does not cause this problem with using colors in a cell. I suspect that the vertical position, starting below which is the territory of a cell, for **\hline** and for **\cline** differs. For **\hline** , a cell starts below the bottom boundary of the horizontal rule, while for **\cline** , a cell starts below the top boundary of the rule? Anyone enlighten me please! **NOTE** : I do want to use variable-width **\cline** (either thick or thin like the example showed), but I want to avoid these intruding problems.


title: Latex - picture color and minted color

text: I'm using `minted` package. If logo (top-picture) contains **green** , code color change.               \definecolor{codecolor}{RGB}{108,247,10}     \newminted{cpp}{linenos,bgcolor=codecolor!25,frame=lines,fontsize=\small,framerule=0.7pt,xleftmargin=20pt,mathescape}         \pagestyle{fancy}     \fancyhead[CO,CE]{\includegraphics[height=0.6in]{logo}}     \fancyhead[LO,RE]{\bfseries APIO .....}     \fancyhead[RO,LE]{\bfseries ......}     \fancyfoot[CO,CE]{}     \renewcommand{\headrulewidth}{0.4pt}      Look, pictures. First picture's logo don't contain green and code color is true. ![enter image description here](http://i.stack.imgur.com/aGUGz.png) But, second picture's logo contains green, so code color is false. ![enter image description here](http://i.stack.imgur.com/N8S8U.png) If I change logo, problem fixed. How can we solve this problem?