title: Section bibliographies using biblatex in ShareLaTeX

text: I'm trying to use `biblatex` to make sectioned bibliographies like here: Section bibliographies However it doesn't seem to work over at ShareLaTeX. This works:               \documentclass{report}     \usepackage[utf8]{inputenc}     \usepackage[backend=bibtex]{biblatex}      \addbibresource{biblio} % the ref.bib file     \begin{document}          Hi there, Stackoverflowers\cite{patashnik_88}          \printbibliography      \end{document}      But when I add the `\refsection` etc it doesn't:               \documentclass{report}     \usepackage[utf8]{inputenc}     \usepackage[backend=bibtex]{biblatex}     \addbibresource{biblio} % the ref.bib file     \begin{document}          \begin{refsection}     Hi there, Stackoverflowers\cite{patashnik_88}     \printbibliography[heading=subbibliography]     \end{refsection}          \printbibliography      \end{document}      This is the biblio.bib file:               @book{knuth79,         author = "Donald E. Knuth",         title = "Tex and Metafont, New Directions in Typesetting",         year = "1979",         publisher = "American Mathematical Society and Digital Press",         address = "Stanford"     }          @book{lamport94,         author = "Leslie Lamport",         title = "Latex: A Document Preparation System",         year = "1994",         edition = "Second",         publisher = "Addison-Wesley",         address = "Reading, Massachusetts"     }          @misc{patashnik_88,         author = "Oren Patashnik",         title = "{B}ib{T}e{X}ing.  Documentation for General {B}ib{T}e{X} users",         year = "1988",         howpublished = "Electronic document accompanying BibTeX     distribution"     }          @techreport{rahtz89,         author = "Sebastian Rahtz",         title = "A Survey of {T}ex and graphics",         year = "1989",         institution = "Department of Electronics and Computer Science",         address = "University of Southampton, UK",         number = "CSTR 89-7"     }      This is what I get: ![No bibliography is shown, and the underscore becomes some weird dot thing?](http://i.stack.imgur.com/JqAMw.jpg) Why is the underscore acting up (even without the underscore no bibliography is outputted) and is this a ShareLaTeX issue or am I doing something wrong? P.S. The example is 'borrowed' from here: ShareLaTeX and biblatex


title: How to change label numbers : polarplots

text: As per answer received in previous post, i'm able to draw graph mentioned below using tex file :               \documentclass[11pt,a4paper]{article}     \addtolength{\textheight}{1.1cm}     \addtolength{\textwidth}{1.1cm}     \usepackage{pst-plot}     \begin{document}     \begin{pspicture}(-5,-5)(5,5)%             user coordinates (is cm by default)     \psaxes[labels=none,axesstyle=polar,ticklinestyle=dashed,tickcolor=black!40](0,0)(-4,-4)(4,4)     \psaxes(0,0)(-4,-4)(4,4)%                  for the labels     \psset{fillstyle=solid,opacity=0.5}     \pswedge[fillcolor=green]{2.2}{120}{150}%  radius;startAngle;endAngle     \pswedge[fillcolor=yellow]{1.5}{150}{180}     \pswedge[fillcolor=red]{1.25}{180}{210}     \pswedge[fillcolor=red]{1.8}{210}{240}     \pswedge[fillcolor=green!100!white!80]{1.5}{240}{270}     \pswedge[fillcolor=orange]{2.4}{270}{300}     \pswedge[fillcolor=magenta]{2.2}{300}{330}     \pswedge[fillcolor=cyan]{0.6}{330}{360}     \pswedge[fillcolor=green](4.25;90){0.5}{70}{110} \rput(4.9;90){One}     \pswedge[fillcolor=yellow](4.25;80){0.5}{70}{110}\rput(4.9;80){Two}     \pswedge[fillcolor=red](4.25;70){0.5}{70}{110}   \rput(4.9;70){Three}     \pswedge[fillcolor=blue](4.25;60){0.5}{70}{110}  \rput[b](4.9;60){four}     \psset{opacity=1}     \end{pspicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/MqzkM.png) Can you please suggest, how can i change LABEL values on AXIS from 1, 2, 3, 4 to 25,50,75 and 100


title: Second Font dedicated for tables

text: How to put second font in table. First is Utopia Regular with Math Design as a main font. Second - TeX Gyre Heros, for tables.               \documentclass{beamer}           \mode<presentation>     {     \usetheme{Madrid}     \setbeamercovered{transparent}     }          \usepackage[utf8x]{inputenc}     \usepackage[MeX]{polski}     \usepackage[utopia]{mathdesign} %main font          \usepackage{tgheros} %second font - for tables     \renewcommand*\familydefault{\sfdefault} %% Only if the base font of the document is to be sans serif     \usepackage[T1]{fontenc}          \usepackage{tabu}          \usecolortheme{crane}          \begin{document}          \begin{frame}     \frametitle{Wynagrodzenia}     \begin{table}     \tabulinesep =_4pt^4pt     \begin{tabu}to \textwidth{@{}cX[m]X[c]X[c]X[c]@{}}        \tabucline[1.0pt blue!40 off 0pt]{-}        \multicolumn{2}{@{}l}{procesy} & Min & Max  &\\        \tabucline[0.7pt blue!40 off 0pt]{-}       & Junior         & 1 700 & 2 800 & 3 200\\     \tabucline[0.2pt blue!40 off 2pt]{.}     & Senior         &  & ? &\\     \tabucline[0.2pt blue!40 off 2pt]{-}     & Specjalist     &  & ? &\\     \tabucline[0.2pt blue!40 off 2pt]{-}     & Team Leader    &  & ? &\\     \tabucline[1pt blue!40 off 0pt]{-}     \end{tabu}     \caption{1. Wynagrodzenia: Procesy HR}     \label{tabela1}     \end{table}     \end{frame}          \end{document}


title: Problem parsing product `2\x` with `TiKZ 3.0`

text: I was used to write `2\x` to obtain the product `2*x` but today I've found this is not correct anymore in `TiKZ`. Next code               \documentclass[tikz,border=2mm]{standalone}          \begin{document}     \begin{tikzpicture}[x=2cm,y=0.5cm]     \foreach \i in {0,...,3}          \foreach \j in {0,...,3} {             \draw[black] (\i,\j) circle[radius=2pt];             \draw[blue] (2\i,2\j) circle[radius=2pt];             \draw[red] (2*\i,2*\j) circle[radius=1pt];             }     \end{tikzpicture}     \end{document}      gives me ![enter image description here](http://i.stack.imgur.com/BzGA1.png) As you can see all blue circles with coordinates computed through `(2\i, 2\j)` are wrongly placed while red ones computed with `(2*\i,2*\j)` are correct. I don't remember to have read anything about `*` addition for products in `TiKZ` but, of course, I could be wrong. So, is it a known behaviour? Where is it documented?


title: Animation: How to move the position of an equation in a continuous manner?

text: I want to make equations (or words) to continuously move in a page for a beamer talk. A simple example would be we have "A" on the left margin and "B" on the right margin and then "A" moves towards and below "B" to make the division B/A. I thought about using the texpos package with the animate package so I did not have everything in a tikz picture. As I never used the animate package I'm looking for similar examples. At TeXample, the examples I found of animation were about animating pictures and graphs. Here by "animation", all the questions I found mean changing an equation but not its position in a continuous manner.


title: Removing Symbols from moderncv Document

text: I'm enjoying the `moderncv` class for creating sharp looking cover letters and CVs. But, I'd like to remove the symbols associated with phone, email, etc. Is this possible?


title: Shrink tikz trees

text: How can I reduce the overall size of trees drawn by `tikz-qtree`? I've got a huge parse tree that doesn't even try to fit on one page. I'd like to either resize the full tree or tweak the placing algorithm to make the tree more dense.


title: Powerdot oddities

text: I have a couple of questions,   1. When I run `powerdot`, my pdf file contains an extra page before title page with the word preamble of bottom left, how can I get rid of it?   2. In addition to the style files that are discussed in the powerdot manual (version 1.4h), I have seen a couple of others on the internet including `jena` and `umass amherst` styles. Are there any other slides out there? Is there a site that collects all these additional styles?   3. Does there exist a style that offers blocks (theorems, lemmas, exercises, etc.) similar to those offered in `beamer`? `jena` has blocks and exercises but those are not adequate. I am looking for a general block structure similar to `beamer` that can be used in all (or many) `powerdot` styles.   4. Is `powerdot` currently maintained and developed?


title: Problem with ifxetex.sty

text: While compiling(`pdflatex`) with the following code, I am asked to install `ifxetex` package everytime.               \documentclass{article}     \usepackage[T1]{fontenc}     \usepackage{lipsum}     \usepackage{geometry}     \geometry{papersize={15cm, 5cm}}          \begin{document}     \lipsum[5-7]     \end{document}      How should I go about it? `~/tex/latex/ifxetex` has `ifxetex.sty` file in it. Using `windows Xp`, `MikTeX 2.8` and `WinEdt` IDE I got the error as shown below when I tried to update the package. ![enter image description here](http://i.stack.imgur.com/1B64h.png)


title: vim latex-suite: unwanted in-editor math symbol conversion

text: I'm experiencing trouble using vim in combination with latex-suite. Since recently there is a nice feature, that converts some latex commands, such as `\varphi`, into symbols better readable and more appealing to the eye. Whenever the cursor hovers over a line, this feature is disabled for that line, since it would bother typing tex stuff. You can see this in the screenshot below, where the cursor is on the bottom line. However, when entering insert mode in vim, the feature gets enabled again, causing trouble with typing. Why is this, and how can I fix it? ![vim screenshot](http://i.stack.imgur.com/76yaC.png)


title: pdflatex can't find aux file

text: I'm trying to automate the creation of PDF documents from tex files via command line. I use the command **pdflatex C:\files\001.tex** and files named **001.aux** , 001.dvi, 001.log, 001.toc are created in the same folder, but I get the message: **! I can't find file `001.aux '** But it really is in that folder. When ask " **Please type another input file name:** " I have the option of manually write **C:\files\001.aux** , but I can`t do this all the time. Even if i write **pdflatex --output-directory="C:\files" --aux- directory="C:\files" C:\files\001.tex** I get the same result


title: protrusion issue - pdftex bug, microtype bug or LaTeX bug?

text: While finishing an article for TUGboat I came across a strange behavior of the protrusion mechanism of pdfTeX (as implemented by the `microtype` package). The character `\` in typewriter has a negative left margin protrusion, i.e., it normally sticks out by 1.57498pt into the left margin. However, if the same text is used within a `quote` environment of LaTeX, the protrusion on the first line vanishes as can be seen in the following example:               \documentclass{article}          \usepackage{microtype}     \microtypesetup{protrusion=true}          \begin{document}          \noindent     \verb=\foo= \\     \verb=\foo= \\     \smash{\rule{.4pt}{34pt}}aaaaaaaa          \begin{quote}     \verb=\foo= \\     \verb=\foo= \\     \smash{\rule{.4pt}{34pt}}aaaaaaaa     \end{quote}     \end{document}      As a result we get ![enter image description here](http://i.stack.imgur.com/Hx8NO.png) Now the problem is clearly related to how pdfTeX implements protrusion and in Unexpected interaction between microtype and \parindent this is already discussed in relation to the intentation box. In this case here there is no indentation box. Instead we do have a hidden "label" box added by the `quote` environment as that is really a trival form of list. Thus there is a hidden `\item` without any visible output (like a zero width indentation box). So here are my question(s):   * is my analysis correct (it basically only an assumption around midnight)   * if so, should pdfTeX try harder to do protusion across "non-visible" material at line ends? I.e., would that be a pdfTeX bug at least an improvement topic?   * or should/could this be fixed by code in LaTeX (or `microtype`) implementing such things differently?


title: How to create bibliography in LyX

text: I use Lyx (Layout report) for my thesis and i need your help on adding Bibliography.. I added bibliography, but how can i add reference at each nunber in my text. For example i want when clicking on the number into the text (e.x. [1] ) to referee to the same nymber in bibliography.. Is it possible ?


title: Template for glass slides 2 x 2.5 cm

text: I am a scientist and I want to label glass slides and I need a template. I would like to have rows of 2x2.5 cm rectangle boxes in which I write my labels and which I can print on a4 paper. I tried to come up with some by myself; I failed. Please help me.


title: How to write the € symbol into a file, when using Package [utf8]{inputenc}

text: With the following MWE, I can write the € symbol into the file euro.txt               \documentclass{article}     \newwrite\tempfile     \immediate\openout\tempfile="euro.txt"          \begin{document}     Write Euro symbol into a file     \immediate\write\tempfile{10 €}%     \immediate\closeout\tempfile          \end{document}      My problem is that I use `\usepackage[utf8]{inputenc}`, and with this encoding, the symbol € produces a bug. What could i do ?               %\usepackage[utf8]{inputenc}


title: How to reference a point in a document with a counter and descriptive text?

text: This is a follow-up question to the previous questions:   * How to label a word inside a paragraph?   * How to refer back to a point in the document with custom counters? The code below               \documentclass[a4paper,11pt]{article}     \usepackage{hyperref}     \makeatletter     \newcounter{step}     \renewcommand*{\thestep}{(\textbf{Task~\arabic{step}})} % needed     \newcommand*{\TASK}[1]{%       \begingroup         \refstepcounter{step}%         \label{#1}%         \thestep       \endgroup     }     \newcommand*{\REF}[1]{%       \begingroup         \refstepcounter{step}%         \phantomsection          \ref{#1}       \endgroup     }     \makeatother     \begin{document}     text1 \TASK{t.limit} referenced as \REF{t.limit}.     \end{document}       gives me a text like this: ![enter image description here](http://i.stack.imgur.com/9P0Sm.png) How should I modify it so that by writing               text1 \TASK{t.limit}{Limit behavior} referenced as \REF{t.limit}.      or something similar, I get the output below? ![enter image description here](http://i.stack.imgur.com/MO8qd.png)


title: LaTeX: a4wide package and hungarian settings "input stack size" exceeds

text: I have a file that compiled on Ubuntu 12.04 and now (with Ubuntu 14.04, a fresh install, TeXLive 2013, packages from the Ubuntu repository) not. I purged the file, and I find that without a4wide package it works. It is an error in a4wide or I should reset some variables in the texmf.cnf file? The error message is:               ! TeX capacity exceeded, sorry [input stack size=5000].      The example.tex is:               \documentclass[a4paper]{article}     \usepackage[T1]{fontenc}     \usepackage{t1enc}     \usepackage[utf8x]{inputenc}     \usepackage[magyar]{babel}          \usepackage{amsmath}          \usepackage{a4wide}          \begin{document}          \title{This is the title}     \author{This is my name}     \maketitle          \end{document}      I have used pdflatex, but the error is same with latex command as well. I have not used non-ASCII characters as in this question.


title: Including section multiple times

text: I have a few sections of content I want repeated in multiple chapters. When I include it twice it looks fine in the document but references within that section always go to the section that is included last. This makes sense because the labels are being redefined. Is there anyway to change this behavior or perhaps a better way to add a section to multiple chapters. For example, allowing only references to come from the chapter the section resides in.


title: winfonts problem

text: I'm using Led editor in Windows 7. I want to use Times font but the output pdf fonts are somewhat different. Here are the codes for Times font               \usepackage[T1]{fontenc}     \usepackage{winfonts}     \fontfamily{times-ttf}\selectfont      \renewcommand{\ttdefault}{times-ttf}       \renewcommand{\rmdefault}{times-ttf}       \renewcommand{\sfdefault}{times-ttf}     \renewcommand*\familydefault{\ttdefault}      and I copy the `winfonts.sty` in the same directory. What may cause this problem or am I doing something wrong?


title: TikZ grouping expressions in calculations

text: I had to do some calculations like:               \node (A) {A};     \node (b) at (x,y) {B};          ((A) + (B))*2      However I could not figure out how to group it in a calc statement, I tried `($((A)+(B))*2$)` and `(${(A)+(B)}*2$)`. How can I express this? (Currently I use `($(A)*2+(B)*2$)`, so I have to adjust the factor in two places) A similar issue occurs with the `|-` Operator. I can use it in calculations as long as I don't try pulling of mathematic operations on one of the operands. Is there a way to achieve `($((A)+(B)) |- (4,7)$)`?


title: Solid black boxes in multiline chaper titles

text: Me again... very close to the layout I'm looking for already, but not _quite_ there yet. ;-) For chapter headers, I am trying to get this look for chapter headings: ![I.C.E.'s Rolemaster](http://i.stack.imgur.com/yvDms.png) I.e.,   * `\thechapter` centered,   * with a solid black box (the same height as the numbers) to the left and to the right, spanning the width of the text area.   * The name of the chapter on the next line, also centered, without the boxes. I got the "Chapter" string removed, I got the ".0" appended to the chapter number (thanks to Stefan for helping with that one), and contentet myself with writing `\chapter{MYCHAPTER}` instead of trying to get LaTeX doing the uppercasing for me. I get " _1.0 MYCHAPTER_ " written for a chapter header - so far so good. But now I am stuck. I read and googled, and found plenty of examples using `\@startsection` for adding boxes around headers, lines above and lines below and backdrops behind them, getting increasingly more complex and daunting - but couldn't figure out how to do those black boxes to the left and the right of the chapter numbers. Help?


title: Replace integral sign in CM(U) Bright with Iwona while keeping proper position of integral limits

text: I am typesetting my thesis in CMU Bright OpenType using font spec. For the math fonts I'm using the CM Bright T1 font. The result looks nice except for the integral sign which does not match of other glyphs. Therefore I'm trying to display that sign using the Iwona font (which mathes nicely). Everything works except for the position of the lower and upper limit on the integral. When using Iwona these are display closer to the middle of the line than they should be. Minimal working example:               \documentclass[a4paper]{article}          %MATH FONTS: CM Bright (T1)     \usepackage[T1]{fontenc}     \usepackage{cmbright} %for math only          \usepackage{fontspec}     %MAIN FONT: Computer Modern Unicode (CMU) Bright (open type)     \setmainfont[BoldFont={cmunbbx.otf},ItalicFont={cmunbmo.otf},BoldItalicFont={cmunbxo.otf}]{cmunbmr.otf}          \newfontfamily\integralfont{Iwona}     \newcommand{\myint}{$\integralfont ∫$}          \begin{document}     This is some text (CMU Bright OpenType)          Some math (CM Bright T1, except 2nd integral: Iwona T1): $\int_{0}^{10} f(x) = \myint_{0}^{10}  g(x)$     \end{document} The gives the following result: ![integral.png](http://i.stack.imgur.com/EAXJO.png) Notice the difference in the position of the integral limits (0 and 10). They are further apart when they follow the first integral sign (set with CM Bright) than when they follow the second integral sign (set with Iwona). Can anyone help me fix this? I have experimented with \displaylimits but couldn't get it to work right (or it didn't make a difference).


title: Drawing Kinetic Schemes in Latex

text: Do you think it would be possible to use the `mhchem` package and their arrows (e.g. `<=>>`) in drawing a cyclic kinetic scheme such as : ![Example cyclic kinetic scheme, sorry for my appalling drawing, that's why i use latex ^_^ ](http://i.stack.imgur.com/Sp8zU.png) or do you think it would be better to use a different package?


title: tombstones and beer mugs

text: I'm trying to find an alternative to the standard tombstone qed symbol for more informal papers. I initially thought of an empty square with Pub written inside, but what would actually be better would be a small beer mug symbol. (much like the one found in this set of icons http://dutchicon.com/iconsets/food-and-drinks-icons) Unfortunately there doesn't seem to such a symbol in the comprehensive latex symbol list (although many funny symbols can be found there). Has anyone thought about this? Is there any quick-and-dirty solution?


title: Force color of listoffigures

text: Imagine the following example:               \documentclass{scrbook}          \usepackage{xcolor}          \begin{document}         \begin{figure}             \caption{\textcolor{green}{Green} and \textcolor{red}{red}}         \end{figure}              \listoffigures     \end{document}      It results in a colored caption of the figure: ![Figure caption with green and red font](http://i.stack.imgur.com/ZPnE0.png) and a colored entry in the list of figures: ![List of figures with green and red font as well](http://i.stack.imgur.com/u6ip9.png) How can I force the color of the list entry to be black? I was not able to find a macro that overwrites or strips the color of the list entries, because the inner color macros of the caption seem to have a higher priority.


title: How to place a # character in a message?

text: How can I place a `#` symbol inside of a `\PackageWarning` inside of a macro definition? I tried:               \PackageWarning{package}{# or \# or \string# or \hash}      but either `##` or `unknown` (for `\hash`) or `Illegal parameter number in definition of \reserved@a` resulted.


title: How do you increase the number of points pgfplots uses?

text: My plots look blocky. Is it possible to increase the number of points PGFplots uses when plotting a graph from a formula?


title: smart vector command

text: I need to make a smart vector command that meets the following criteria:   1. There are three arguments: an optional first argument specifying a delimiter (comma by default), a mandatory second argument specifying one or more comma separated components that may be numbers or mathematical expressions, an optional third argument specifying a physical unit.   2. If the command is invoked with `\smartvector{2,4,3}[m]` then it should typeset the numbers as a delimited list in angle brackets, separated by the delimiter specified in requirement 1, with the unit outside the right bracket. All the entries in the comma separated list must be numbers. See the MWE below; I already have this working. Note that the unit is optional and may be omitted. Here's an example. ![Example 1](http://i.stack.imgur.com/uaA1u.png)   3. I'd like to add the capability to invoked the command with `\smartvector{2}[m]` and have it just typeset the number and the unit with no brackets or commas. So I think I need to test whether the comma separated list in the mandatory second argument is a single number. Here's an example. ![Example 2](http://i.stack.imgur.com/rl0Qq.png)   4. If the comma separated list contains ANY item that is NOT a number, as in `\smartvector{2x^2,y^3,2}` then it should typeset as in requirement 2 but MUST leave off the unit. The user will know to leave off the unit as algebraic expressions don't have units. Here's an example. ![Example 3](http://i.stack.imgur.com/1V8hj.png) So I think it comes down to parsing the comma separated list and doing some logic, but I must confess to not understanding that part of my MWE, which was offered to me here in another thread. I don't want to be guilty of cargo cult programming any more than I already am. Here's my MWE:               \documentclass[10pt]{article}     \usepackage{xargs}          \makeatletter     \newcommandx\smartvector[3][1={,},3=,usedefault]{\ensuremath{%       \global\def\smart@delim{#1}%         \left\langle           \smart@vector #2,\relax\noexpand\@eolst%         \right\rangle{\;#3}}}%     \def\smart@vector #1,#2\@eolst{%       \ifx\relax#2\relax         #1       \else         #1\smart@delim         \smart@vector #2\@eolst%       \fi}     \makeatother          \newcommand{\m}{\ensuremath{\mathrm{m}}}          \begin{document}          \[     \smartvector{2,4,3}[\m]     \]          \end{document}


title: Installation on OSX 10.7.4

text: I used the `mpkg`. Installation went fine, but nothing works. I cannot typeset (the usual "`/usr/texbin/pdflatex` does not exist"). TeXLive cannot find a server to connect to. I tried reinstalling from the `mpkg`, logging off/on, restarting, etc etc... I see a softlink called `/usr/texbin` that points to `/Library/TeX/Distributions/.DefaultTeX/Contents/Programs/texbin` but there is no TeX folder in `/Library`. I do see a `TeXShop/` folder in `~/Library`. The command `sudo find / -name "pdflatex*" -ls` returns some paths to `pdflatexc` or `pdflatexmk.engine` but nothing called `pdflatex`. P.s. OSX 10.7.4.


title: How to remove the changebar from footnotes

text: I am using the `changebar` package to display a sideline along certain paragraphs for stylistic reasons. The default behavior of `changebar` seems to be to show the sideline alongside footnotes as well as the paragraphs. I was wondering if there was an easy way to (i) show the sidebar along a paragraph in the body of the text while (ii) not showing the sidebar alongside in the footnotes of the paragraph. I know I can insert `\cbend` before the start of each footnote and `\cbstart` after it, but the text I am working with is around 70 pages long and this seems like a rather cumbersome method, so I was wondering if there was an easier way to accomplish this. In terms of code: is there an easy way to display the `changebar` alongside the main paragraph, but _not_ alongside footnotes 1 and 2, _without_ manually inserting `cbstart`/`cbend` around footnotes? Example:               \documentclass{article}     \usepackage{changebar}     \begin{document}     \section{Intro}          {\cbstart}Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse auctor mauris id tortor interdum pharetra\footnote{This is the first footnote.}. Vestibulum sagittis facilisis augue quis viverra. Aenean gravida      rutrum leo, vel tincidunt neque feugiat et. Morbi eu nulla nec lorem tristique viverra. Praesent nec odio at felis aliquet vestibulum vel a risus. Fusce quam est, eleifend et rutrum et, malesuada non ante. Class aptent taciti      sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Aenean pellentesque justo id sapien consequat dictum vel in sem. Fusce volutpat, diam eu egestas egestas, neque leo adipiscing velit, non fermentum      erat purus eu nisl. Vestibulum vitae venenatis augue. Fusce tellus velit, aliquet non bibendum commodo, vulputate sed ipsum. Proin mollis\footnote{This is the second footnote.} bibendum tellus, porta sagittis ante lobortis quis.      Cras neque elit, sollicitudin at tincidunt et, eleifend ac dui. Maecenas id metus sit amet velit ullamcorper mattis at sollicitudin neque. Sed ut euismod augue.{\cbend}     \end{document}


title: How to reduce the margins

text: I am making a report using latex, it is looking fine but there is a really large space taken up by the margins. Here is the main tex file               \documentclass[fontsize=13pt]{scrreprt}     \usepackage[pdftex]{graphicx}     \usepackage{color}     \usepackage{gensymb}     \usepackage{mathtools}     \usepackage{fancyhdr}          %%    homebrew commands -- to save typing     \newcommand\msp{\textup{\normalsize MSP430 Launchpad }}     \newcommand{\HRule}{\rule{\linewidth}{0.5mm}}     \def\onequarter{\frac{1}{4}}     \pagestyle{fancy}     % New colors          \definecolor{orange}{RGB}{255,127,0}          \begin{document}     \input{./title.tex}     \input{./cert.tex}     \input{./ack.tex}          \tableofcontents     \input{./intro.tex}     \input{./learn.tex}     \input{./comp_list.tex}     \input{./comp_desc.tex}     \input{./block.tex}     \input{./ckt_dia.tex}          %-----------------------------------------------------------     %-----------------------------------------------------------     %\addcontentsline{toc}{chapter}{\numberline{}Bibliography}     %-----------------------------------------------------------     %-----------------------------------------------------------     \end{document}      How may I reduce the margin to maybe half of what it is right now?


title: Distribute evenly some formula or text randomly  on a page

text: Suppose you have n variations of a small text or a formula like this:               % Formula 1     \begin{align}           v(t_o) = \lim_{h \to 0} \frac{v(t_0 + h) - v(t_0)}{h}     \end{align}          % Formula 2     \begin{align}           v(t_o) = \lim_{h \to 0} \frac{v(t_0 + \Delta t) - v(t_0)}{\Delta t}     \end{align}          %...          % Formula n     %...      Is it possible to distribute evenly those formulas randomly, on a page with random rotations of the formulas by +- x degree. The formulas must not overlap.


title: Global set node background

text: I know I can do this:               \draw (5,0) node[above=3pt,fill=white,inner sep=0pt] {$5$}      But I wonder if it is possible to set the `3pt`, `fill=white`, and `inner sep=0pt` globally for every node in my document? Thanks.


title: Shortcut for Variable-Taking Command

text: I'm working with vectors, which I'm denoting with `$\overrightarrow{a}$`, where `a` is just the name of the vector, and thus is a variable that can take any value. I would like to redefine this as `$\v{a}$`, to save time and effort. How do I do this? Apologies if this question is a duplicate - I did find some similar questions, but none that I thought directly answered this. Edit: Question has been extensively answered in the comments. Thanks!


title: Access label, title in pgpfplots

text: I would like to know if is possible to access the standard `nodes` in `pgfplots` such as `ylabel, xlabel, title`. I am pretty sure this is quite easy, since each `node` should have a name by which it can be called, but I don't know how to figure this name out and the name, I would expect them to have, does not exist. ## MWE               \documentclass{article}     \usepackage{pgfplots}     \begin{document}         \begin{tikzpicture}             \begin{axis}[title={Some title}, ylabel={ylabel}, xlabel={xlabel}]                 \addplot+[smooth] coordinates {(0,0) (1,2) (2,3)};                 % Does not work                 \draw (ylabel.center) -> (title.center);                 \draw (ylabel.center) -> (xlabel.west);             \end{axis}         \end{tikzpicture}     \end{document}


title: How to edit different parts of document side by side?

text: I need to edit different parts of the document side by side. I cannot split the editor into two parts. I tried to run another instance of it, but it just goes back to the same existing one. I'm using TexMakerX


title: Wrong header in Bibliography page

text: I need help with header in bibliography page. I use fancyhdr to set different headers for even and odd pages. When my bibliography runs long to a second page, the header appears as like what I set earlier by fancy. I would like the header to be Bibliography instead of COMEDY. I write in book class.               \documentclass[a4,11pt,twoside]{book}          \usepackage{csquotes}     \usepackage[utf8]{inputenc}     \usepackage{emptypage}     \usepackage[nottoc,notlot,notlof]{tocbibind}     \usepackage{url}     \usepackage{nth}     \usepackage{titlesec}     \usepackage{fancyhdr}     \pagestyle{fancy}     \fancyhead[LE]{\slshape COMEDY}     \fancyhead[RE]{}     \fancyhead[LO]{\hfill \slshape \leftmark}          \renewcommand{\headrulewidth}{0pt}               \title{My title}     \author{My name}     \date{}                    \begin{document}          \pagenumbering{roman}          \maketitle     \tableofcontents      \renewcommand{\headrulewidth}{.4pt}               \chapter*{Notes}     \addcontentsline{toc}{chapter}{\numberline{}Notes}          This book is made possible by the contributions of:                    \chapter{example}               \begin{thebibliography}{99}          \bibitem{example}     \bibitem{example}     \bibitem{example}          \end{thebibliography}               \end{document}      Thank you!


title: How can I make a manual a cover for a report?

text: I need a simple cover but I don't know how set personalized spaces and positions to achieve what I really want. I need something like this               Education Institution     Location                                                      Centered title a little over the middle page                       hopefully with a letter more bigger than normal                                                                                Author             : my                                                 Responsable Teacher: my teacher                                                 Course             : mycourse                                                 Date               : 7/7/2011                                                 Note the aligned   : Colons!      I hope someone could give me a hint.


title: Does \pslistplot support option polarplot=true?

text: Consider the following example:               \documentclass{standalone}     \usepackage{pst-plot}          \begin{document}     \psset{unit=0.5}     \begin{pspicture}(-8.5,-8.5)(14,9)%     \psset{linewidth=.35mm,plotstyle=curve,polarplot=true}     %     \psplot[plotpoints=200]{0}{720}{8 2.5 x mul sin mul}     %     %the same (?) with \pslistplot     \pstVerb{/mylist {/x exch def x DegtoRad 8 2.5 x mul sin mul x 720 lt {x 3.6 add mylist} if} def }     \pslistplot[linecolor=blue]{0 mylist} % 0 mylist => 0 0 0.0628318489 1.25147569 ... 4*Pi 0.0      \end{pspicture}     \end{document}      Obviously, the graphs generated by `\psplot` and `\pslistplot` are not the same;`\pslistplot` doesn't seem to acknowledge the `polarplot` option. ![enter image description here](http://i.stack.imgur.com/oovxc.png)


title: Where should I insert the titlesec package?

text: I am writing a thesis and I want the chapter and its heading right aligned. On searching in TEX I got an answer to download the `titlesec` package. I downloaded it but I don't know where to insert the package.


title: Raising a minibox fails in a non-p tabular cell

text: While trying to answer a `tabular` related question here I found the following behavior which surprised me: I'm trying to overlap a multi-line text in an otherwise left aligned column with the empty cell above. This is intended as an alternative to the `multirow` package in this case. I tried `\raisebox{<amount>}[0pt]{\begin{minipage}[t]{<width>} .. \end{minipage}}` (or `\begin{adjustbox}{minipage=[t]{<width>},raise={<amount>}{0pt}`) but this does not raise the `minipage` at all when a `l`, `c` or `r` column type is used. It works for `p{<width>}`. A MWE is:               \documentclass{article}     \usepackage{blindtext}     \begin{document}          \begin{tabular}{lp{6cm}}         text & .\raisebox{1ex}{Text} \\         text &         .\raisebox{2\baselineskip}{\begin{minipage}[t]{5cm}% baseline is raised             \blindtext         \end{minipage}} \\     \end{tabular}          \clearpage     \begin{tabular}{ll}% same for c and r         text & .\raisebox{1ex}{Text} \\         text &         .\raisebox{2\baselineskip}{\begin{minipage}[t]{5cm}% baseline is not raised!             \blindtext         \end{minipage}} \\     \end{tabular}          \end{document}      Result with 'p' type: ![With 'p' type](http://i.stack.imgur.com/R9kdC.png) Result with 'l' type: ![With 'l' type](http://i.stack.imgur.com/eqvmv.png) This behavior escapes me. It is usually always possible to use a `minipage` in an otherwise horizontal mode. I guess that maybe some internal macro is redefined which interferes with this? Can anyone explain why this happens and how to make `\raisebox` work also for non-`p` column types?


title: Height of tabularx containing a multicol

text: I would like to have a vertical label to the left of a multicolumn block of text. The easiest way to do this I have found is using a `multicol` environment as one of the cells in a `tabularx` table. The problem is that the resulting `tabularx` has too much vertical whitespace, presumably because the multicol environment pads itself too much. I am open to solutions that do not use the strategy I show below. MWE with two attempts:               \documentclass[article,oneside,letterpaper]{memoir}         \usepackage{multicol}         \usepackage{multirow}         \usepackage{lipsum}         \usepackage{tabularx}         \usepackage{graphicx}          \begin{document}         \begin{tabularx}{\linewidth}{ | l | X  }             \cline{1-1}             \multirow{1}{*}{\rotatebox[origin=c]{90}{Margin Label~}}&\\                 & \begin{multicols}{3}                 \lipsum*[1-2]                 \end{multicols} \\             \cline{1-1}         \end{tabularx}              \begin{tabularx}{\linewidth}{ | l | X  }             \cline{1-1}             \rotatebox[origin=c]{90}{Margin Label~} &                  \begin{multicols*}{3}                 \lipsum*[1-2]                 \end{multicols*}\\             \cline{1-1}         \end{tabularx}     \end{document}


title: An extra dot after section counter while numbering equations

text: My sections are numbered with a dot after counter. I get it like this               \renewcommand{\thesection}{\arabic{section}.}      I also need the equations to be numbered within sections and I try to do it like this               \numberwithin{equation}{section}      The result is that I get numbers of equations with an extra dot, e.g. `(1..1)` instead of `(1.1)`. How can I fix this?


title: XeLaTeX weird characters in numbering and headers

text: When I build my document, several weird characters appear. Take a look at the picture below: ![Several problems](http://i.stack.imgur.com/HZjhl.png) The most strange thing, is that exactly the same tex file compiles fine on an other computer of mine. I am using TexLive 2011, the same version as on my other computer. A fresh install of TexLive did not solve the problem. Does any one have a clue about what could be causing this problem? I suspect there is something wrong with my TexLive distribution, not the document. (It also happens for all of my documents, but that could be because they use mostly the same packages (among others fontspec, xltxtra, polyglossia, url and hyperref).


title: lazy latex: how use '^' and '_' without mapping argument in parenthesis

text: For e.g. take               $G^\times$      here we do not need to write the curly parenthesis, as in               $G^{\times}$      What is it that one has to add to a newly declared command, e.g.               \newcommand{\foo}{\ensuremath \times\ast 2}      so that               $G^\foo$      yields the same as               $G^{\foo}$      thx


title: Makeindex rejection

text: I tried finding the solution on line, and could not find any suitable answer to my question. My aim is to make a nomenclature. In order to do this, I need to perform the operation `makeindex filename.nlo -s nomencl.ist -o filename.nls`. However, I seem to only get rejections. (0 entries accepted, 2 rejected). I'm having trouble interpreting the log file, so here it is.               This is makeindex, version 2.15 [MiKTeX 2.9 64-bit] (kpathsea + Thai support).     Scanning style file C:/Program Files/MiKTeX 2.9/makeindex/nomencl/nomencl.ist.......     ** Input style error (file = C:/Program Files/MiKTeX 2.9/makeindex/nomencl/nomencl.ist, line = 70):        -- Unknown specifier lethead_prefix.     ** Input style error (file = C:/Program Files/MiKTeX 2.9/makeindex/nomencl/nomencl.ist, line = 71):        -- Unknown specifier lethead_suffix.     ** Input style error (file = C:/Program Files/MiKTeX 2.9/makeindex/nomencl/nomencl.ist, line = 72):        -- Unknown specifier lethead_flag.     ...done (10 attributes redefined, 3 ignored).     Scanning input file Slutrapport.nlo...     !! Input index error (file = Slutrapport.nlo, line = 1):        -- Illegal page number -100.     !! Input index error (file = Slutrapport.nlo, line = 2):        -- Illegal page number -100.     done (0 entries accepted, 2 rejected).     Nothing written in Slutrapport.nls.     Transcript written in Slutrapport.ilg.      Am I missing something fundamental or why is it rejecting?


title: Beginner issues about custom class files

text: I am trying to write my first ugly .cls for LaTeX related to the following problem which Mike and me are trying to solve (we will post soon the link to Github for people who are interested to work with us). I have two baby questions which probably can be easily answered by reading the documentation but I would like to get at least some push. First question is about `multicolumn` environment. This snippet of code               \RequirePackage{multicol}     % Two-column lists (itemize, description, etc.)     \SetEnumitemKey{twocol}{     itemsep=1\itemsep,     parsep=1\parsep,     before=\raggedcolumns\begin{multicols}{2},     after=\end{multicols}}      is just not working for me. The second question is how I can pass options to `hyperref`               \RequirePackage{color}     %\RequirePackage{hyperref}     %\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{hyperref}     %\ProcessOptions\relax     %\hypersetup{colorlinks}     %\definecolor{darkred}{rgb}{0.5,0,0}     %\definecolor{darkgreen}{rgb}{0,0.5,0}     %\definecolor{darkblue}{rgb}{0,0,0.5}     %\hypersetup{colorlinks,     %linkcolor=darkblue,     %filecolor=darkgreen,     %urlcolor=darkred,     %citecolor=darkblue}}     \RequirePackage{hyperref}      I made some experiments based on the answers found on TeX.SE but I was not able to change the default behavior. **News:** The further development of Syllabus-Generator is moved to GitHub for people who are curious and have any desire to help at least with advices. If you would like a write access please send me an e-mail.


title: Create commands each of the text aligned horizontally?

text: I am using `exam` document class as my guide in creating my own documentclass but i have encountered a problem.How will i create a `command` for each of the four texts in a line. here is a sample image: ![enter image description here](http://i.stack.imgur.com/uboYO.png) . the command names that will be created would include commands for each: `time`, `ExamCategory`, `MaximumMarks`, and `PassingScore`. these when used, will be displayed in one line or horizontally aligned as what was indicated in the image.


title: Direct connection from the CTAN package name to the files of the package

text: Is there a way to download the package files only be knowing the CTAN package name (which can be a (La)TeX package, class, bundle, font, etc.)? I'm aware that `http://www.ctan.org/pkg/<NAME>` shows the package entry and `tug.ctan.org/tex-archive/help/Catalogue/entries/<NAME>.html` shows the similar catalogue entry. Both of them link to the CTAN directory holding the package files, which is fine for manual browsing. I however look for an _automatic way_ to retrieve the package files (mainly the DTX and INS files) _without_ needing to parse a HTML page for the directory URL. The idea is to write a script which allows to install most CTAN packages directly from CTAN. To elaborate: I'm looking for an online resource where I can use the CTAN package name in an URL and I get redirected to the CTAN directory of this package, on any mirror. This is similar to http://texdoc.net just not for the documentation but for the DTX/INS files. If there is no such thing I probably will create it myself (by altering the some source code of CTAN-HG), but I see no reason to duplicate something which already exists.


title: Adjust equation numbering indent relative to a \newenvironment

text: I was working on a new environment for the examples I explain for my lecture notes (fancy environment), but when I create an equation using the equation environment within my newly created example environment, this does not obey the indentation that I have placed on my environment. Is this possible?               \documentclass[letterpaper]{article}     \usepackage{fullpage}     \usepackage{amsmath,amssymb,amsthm}     \usepackage[dvipsnames]{xcolor}     \usepackage{tikz}     \usetikzlibrary{shapes.symbols}     \usepackage{lipsum}     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     %% Example Environment      \newcounter{boxnum}     \newenvironment{egenv}[1]{%     \begingroup\addvspace\medskipamount%       \stepcounter{boxnum}{\sffamily\bfseries\large EXAMPLE       \tikz [baseline=(char.base)] \node[shape=rectangle,draw=blue!50,inner sep=2.5pt,fill=Cerulean,text=white] (char) {\arabic{boxnum}};%       \quad{#1}\vskip0.75\baselineskip}       \setlength{\leftskip}{20pt}%       \setlength{\rightskip}{20pt}%       \setlength{\parfillskip}{0pt plus 2fil}     }{%       \par\hfill{\color{Cerulean}$\blacksquare$}%       \par\addvspace\medskipamount%     \endgroup     }     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \parindent0pt     \begin{document}          \lipsum[2]     \begin{equation}       (x-h)^2+(y-k)^2=r^2     \end{equation}          \begin{egenv}{Combined (double) Inequalities}     \lipsum[3]     \end{egenv}          \begin{egenv}{Combined (double) Inequalities}     \lipsum[3]     \begin{equation}\label{stdform}       (x-h)^2+(y-k)^2=r^2     \end{equation}     \begin{equation}\label{stdformnn}       (x-h)^2+(y-k)^2=r^2     \end{equation}     \lipsum[3]     \end{egenv}     \end{document}      This yields: ![enter image description here](http://i.stack.imgur.com/OIBnk.png) Of course I would like the equation numbering to restore its normal right indent outside my environment. I have looked at Changing the apperance of equation numbers with amsmath which seems to do what I want with:               \makeatletter     \let\mytagform@=\tagform@     \def\tagform@#1{\maketag@@@{\bfseries(\ignorespaces#1\unskip\@@italiccorr)}\hspace{20pt}}     \renewcommand{\eqref}[1]{\textup{\mytagform@{\ref{#1}}}}     \makeatother      But the above effect is global. Any help into the matter will greatly appreciated.


title: Multiple equations with a large "{" in front: alignment and labelling

text: I'm trying to get the equation shown in the picture. But i only manage to get the following coding. Can anyone help me to label it with numbering like the picture? I tried with `\begin{eqnarray}` or `\begin{equation}` but end up with many errors.               \[ \left\{       \begin{array}{lr}         \dot {x}_1 = f_1(x_1,\dots,x_n) \\          \hspace{13pt}   \dots \\         \dot {x}_n = f_n(x_1,\dots,x_n)  \\       \end{array}     \right.     \]      ![HELP](http://i.stack.imgur.com/pgcUJ.png)


title: Typeset text as written (similar to verbatim) within a custom command?

text: I'm trying to define a new command that puts text in a coloured background, reproduces it exactly how it's defined in the .tex file (in a similar way to verbatim), and won't force me to use complicated math notation in the .tex file either. The latter point is the complicated part. This is what I have so far:               \documentclass[10pt]{article}     \usepackage{color}     \definecolor{customblue}{RGB}{235,241,245}     \newcommand{\terminalCommand}[1]{\colorbox{customblue}{#1}}          \begin{document}      \begin{itemize}      \item \terminalCommand{# SUDO_EDITOR="/usr/bin/vim -p -X" visudo} %Generates missing $ errors      \item \terminalCommand{\# SUDO\_EDITOR="/usr/bin/vim -p -X" visudo} %Doesn't generate errors, but text is garbled and doesn't copy properly     \end{itemize}     \end{document}      The first `\terminalCommand` generates a slew of `inserted missing $` errors, which stem from the `_`, among others. The second `\terminalCommand` does not generate any errors, but the underscore doesn't show up in a copy and the spacing in the PDF output is a bit off, which makes it impossible to copy into a shell. Is there a general way I could alter this command so that it reproduces the text within it in a similar fashion to verbatim? I've been using this code for larger blocks of shell commands, but I'm looking for something inline now:               \documentclass[10pt]{article}     \usepackage{color}     \usepackage{listings}          \definecolor{customblue}{RGB}{235,241,245}     \newcommand{\terminalCommand}[1]{\colorbox{customblue}{#1}}          \lstnewenvironment{terminalblock}{%       \lstset{backgroundcolor=\color{customblue},       frame=single,       framerule=0pt,       basicstyle=\ttfamily,       breaklines=true,       columns=fullflexible}}{}          \begin{document}      \begin{terminalblock}       # SUDO_EDITOR="/usr/bin/vim -p -X" visudo      \end{terminalblock}     \end{document}      I pursued a solution using `\verb`, but the logical way of structuring the command (`\newcommand{\terminalCommand}[1]{\colorbox{customblue}{\verb= #1 =}}`) returns errors of `\verb illegal in command argument`


title: Refer to previous reference, different page numbers in Bibtex

text: Is there a way to tell Bibtex to refer to a previous citation, but with different page numbers? Ideally, the citation in the bibliography would say something like               [23] Ref. 20, pp. 33-45      if `Ref. 20` was the previous reference and 23 was the superscript number shown in the text. **Edit** Minimal Working Example               \documentclass{article}     \usepackage{cite}     \usepackage[square,comma,super,numbers,sort&compress]{natbib}          \begin{document}          Hello there.\cite{firstref}  I found this.\cite{secondref}  I also      found these\cite{firstref:differentpage,secondref:otherdifferentpage} on      different pages          \end{document}


title: typing in bold font in algorithmic environment

text: Is there a way to type some words in bold in an algorithmic environment? I want to have the word **stop** typed, but when I use \STOP, this gives me an error.


title: Is it possible to control the minimum tolerance (allowed space between words)

text: I have learned to use `\pretolerance` and `\tolerance` but sometimes TeX decides to "compress" the broken line of text within the paragraph by simply using less space between the words on the line, and I don't like it. So, if the commands above specify maximum allowed tolerance for lines, what specifies the **minimum** tolerance - controlling minimum interword spacing across the document?


title: psgraph scale description doesn't work

text: I've got a small problem. I don't can set the right scale description. Please, have a look at this code:               \def\data1{         % x (degree) % y1 % y2     0 8188 7538     15 9143 8464     30 9605 9075     45 9564 9277     60 9047 9074     75 8044 8477     90 6653 7838     }      \begin{psgraph}[Dx=90, dx=0, Dy=10000, dy=2000, arrows=->](0,0)(0,0)(10,10){0.5\textwidth}{!}             \pstScalePoints(1,1){10 div}{1000 div}             \listplot[plotstyle=curve, linecolor=blue, plotNo=1, plotNoMax=2]{\data1}             \listplot[plotstyle=curve, linecolor=red, plotNo=2, plotNoMax=2]{\data1}              \pstScalePoints(1,1){}{}     \end{psgraph}      I need the x-Axis from 0 to 90 degrees and the y-axis from 2000 to 10000. What's wrong? Thanks Teskania


title: pgfplots interpolation

text: Whats the best way of interpolating a graph and show the interpolation like this (using pgfplots): ![Interpolation](http://www.blueleafsoftware.com/Products/Dagra/Images/LinearInterpolation.png) I have the following code for my plot in an `axis` environment: `\addplot[domain=0:300,samples=5000]{200*0.9^x}` Should I plot the individual lines as individual `addplot`? Thanks.


title: Can I configure shortcuts for tex commands in Texworks?

text: I was using Kile editor for my tex files but it's too heavy for my laptop... It's very slow. So I installed TeXworks wich is better. But I was very used to command shortcuts in Kile that I don't find anymore in TeXworks. Like `Ctrl`+`b` for `\textbf{}` etc. Is there a way to configure them or I should type all the commands?


title: Missing bond type in chemical rendering packages?

text: I've read all the questions regarding chemical structure rendering that I could find on this website. I've decided to use `chemfig` to render the structures. One certain type of bond, illustrated below, is missing from every chemical structure rendering package. How would I make the following type of bond? ![enter image description here](http://i.stack.imgur.com/lyifk.png)


title: Hyperlink each bib entry to its DOI page

text: Can I have each bib entry hyper-linked to its DOI page? i.e. clicking anywhere on the bib entry (preferably anywhere, but if not possible, at least on the title of the paper) in the PDF should open the link to its DOI page. I am willing to ensure that each entry in the bib file has a DOI/URL. I'm using TexShop on Mac OS X Snow Leopard, and use pdflatex/bibtex to compile my dissertation.


title: Differing left and right axis labels in psplot

text: This question is related to psgraph with y-axis on left and right of graph and axis labels but can stand alone, as it is really about loops and variables. I'm really sad that I have to ask this question, I am clearly incompetent. In the following code can I replace the set of 13 consecutive `\rput` commands (near to the bottom) with `\multido{...}`? The objective is to have a different scale on the right axis to that on the left. I have managed this, but the code is so inelegant there must be a proper way. It seems like you ought to be able to `\def\anumber{lowest y axis value string }` and then do some simple arithmetic on it inside a `\multido` to place the desired text in the desired locations.               \begin{pspicture}(1.2,1)          \readdata{\vin}{largesignalvin.txt}     \readdata{\vout}{largesignalvout.txt}     \readdata{\idone}{largesignalID1.txt}     \readdata{\idtwo}{largesignalID2.txt}          \psset{llx=-1cm,lly=-1cm}          \psset{xAxisLabel={Time [ms]}, xAxisLabelPos={c,-0.3in}, yAxisLabel={Voltage [V]}, yAxisLabelPos={-0.3in,c}}          \begin{psgraph}[axesstyle=axes, xticksize=0 12, yticksize=0 5, subticks=0, Dx=0.5, Oy=-6](0,-6)(5,6){7cm}{5cm}          \pstScalePoints(1e3,1e0){}{}          \listplot[linecolor=blue,linewidth=2pt]{\vin}     \listplot[linecolor=black,linewidth=2pt]{\vout}          \rput[r](5.58,-6){$-1.2$}     \rput[r](5.58,-5){$-1.0$}     \rput[r](5.58,-4){$-0.8$}     \rput[r](5.58,-3){$-0.6$}     \rput[r](5.58,-2){$-0.4$}     \rput[r](5.58,-1){$0.2$}     \rput[r](5.58,-0){$0.0$}     \rput[r](5.58,1){$0.2$}     \rput[r](5.58,2){$0.4$}     \rput[r](5.58,3){$0.6$}     \rput[r](5.58,4){$0.8$}     \rput[r](5.58,5){$1.0$}     \rput[r](5.58,6){$1.2$}          \rput{90}(5.85,0){Current[$\mu$A]}          \pstScalePoints(1e3,5e3){}{}     \listplot[linecolor=red,linewidth=2pt]{\idone}     \listplot[linecolor=green,linewidth=2pt]{\idtwo}          \end{psgraph}          \end{pspicture}      The data files, should they be needed, are available from http://www.iceamplifiers.co.uk/latex/[insert_name_of_file].txt


How to fill area between curve defined by series of control points and x-axis? **MWE** :                   \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{decorations.markings}     \usetikzlibrary{intersections}     \usetikzlibrary{calc}          \begin{document}          \begin{tikzpicture}         \def\xmin{-30}         \def\xmax{450}         \def\ymin{-30}         \def\ymax{150}         \def\nula{55}         \def\phase{2.2}         \def\myscale{0.5}                  \begin{scope}[draw=black,line join=round,miter limit=4.00,line width=0.5pt, y=1pt,x=1pt, scale=\myscale]                     \draw[->] (\xmin,\nula) -- (\xmax,\nula) node[right] {$t$} coordinate(x axis);               \draw[->] (\phase,\ymin) -- (\phase,\ymax) node[left]  {$v(t)$} coordinate(y axis);               \path[name path=fce1,draw=black,line join=round,even odd rule,line cap=butt,miter                    limit=4.00] (2.2036044,23.21323707) .. controls                 (2.2036044,23.21323707)  and (7.1896734,29.00183707)  .. (11.896862,37.80963707)  .. controls                 (14.463984,42.61313707)  and (16.430404,45.91313707)  .. (19.958399,53.79007707)  .. controls                 (23.178819,60.98027707)  and (34.001913,68.16119707)  .. (44.701755,69.73912707)  .. controls                 (55.401595,71.31705707)  and (62.430335,112.41315707) .. (84.285711,112.14281707) .. controls                 (106.14109,111.87247707) and (131.61574,2.01243707)   .. (164.28572,1.78563707)   .. controls                 (196.9557,1.55883707)    and (217.37186,52.05023707)  .. (217.37186,52.05023707);                 \end{scope}      \end{tikzpicture}     \end{document}      I would like to fill the space between the x axis and the positive part of the curve (between two zero-crossing). I found a lot of examples, but I have not found in any convenient way. Therefore, I turn to the community for some advice.


title: How to draw/fill half-open intervals on a ray of numbers? (tikz; incl. minimal ex.)

text: I would like to indicate intervals on a ray of numbers. Here is an example including a half-open interval (I would like to draw another one from c to 1-b). I am sure my method to achieve this can be improved... (especially since it is not really exact -- I draw a filled rectangle but the interval is open to the right). What's a better way to achieve this?               \documentclass{scrartcl}          \usepackage{tikz}          \begin{document}     \begin{tikzpicture}[mydrawstyle/.style={draw=black, very thick}, x=1mm, y=1mm, z=1mm]       \draw[mydrawstyle, ->](-2,30)--(66,30) node at (-6,30)[left]{$x=1$};       \draw[mydrawstyle](0,28)--(0,32) node[below=10]{$0$};       \draw[mydrawstyle](10,28)--(10,32) node[above=4]{$c$};       \draw[mydrawstyle](25,28)--(25,32) node[below=10]{$1-b$};       \draw[mydrawstyle](50,28)--(50,32) node[below=10]{$1-a$};       \draw[mydrawstyle](60,28)--(60,32) node[below=10]{$1$};       \fill[fill=blue, opacity=0.2](0,29)--(0,31)--(10,31)--(10,29)--(0,29);       \draw[mydrawstyle, draw=blue](1,29)--(0,29)--(0,31)--(1,31);       \draw[mydrawstyle, draw=blue](10,30) arc (0:45:1.8);       \draw[mydrawstyle, draw=blue](10,30) arc (0:-45:1.8);     \end{tikzpicture}     \end{document}      Output: ![enter image description here](http://i.stack.imgur.com/X1yMr.png)


title: Font mismatch with Linux Libertine and siunitx package

text: Following example:               \documentclass{scrbook}     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{microtype}     \usepackage{siunitx}          \usepackage{fontspec}     \setmainfont{Linux Libertine O}     \usepackage[libertine]{newtxmath}     \setkomafont{sectioning}{\normalcolor\bfseries}          \begin{document}       \chapter{Test}       Anhand einer Kalibrationsgerade des Photolinkers in DMSO konnte der Extintionskoeffizient des Photolinkers $\epsilon_{PL}$ im        Konzentrationsbereich $c_{PL-02}$: \SI{0.02}{\micro\mole\per\liter} -        \SI{0.1}{\micro\mole\per\liter} bestimmt werden. Mittels des  Extintionskoeffizienten        $\epsilon_{PL}=15766$ des Phototolinker und dem Lambert-Beer Gesetz wurde die        folgende Gleichung zur Bestimmung des DS, hergeleitet.     \end{document}      ![enter image description here](http://i.stack.imgur.com/N2rFe.png) Now the number in the math environment (which looks really big) does not match the one in the siunitx environment. Why is this and is there a better way to have a font match between this two? I should mention I use `lualatex`.


title: Lyx Graphics context menu "Edit Externally" is not working (Windows 7)

text: * Insert an image using the Lyx menu `Insert->Graphics`.   * Right click on the image preview and click `Edit externally`   * Current Behavior: The viewer is launched but the file is not opened.   * Expected Behavior: The viewer should be launched with the image file open. **Edit:** I observed that in Lyx:Graphics "Settings:" context menu, the "File:" field has forward slashes. So, if the viewer is not capable of opening full path arguments with forward slashes, then the image file will not be opened. Is this a bug in Lyx.


title: How to expand several arguments in an environment?

text: I have an environment that I've defined as follows:               \newenvironment{regularEnumerateEx}[2][0em]       {begin{listSkeleton}[#1]{enumerate}{#2}}       {\end{listSkeleton}}      The problem is that I need to expand `#2` before passing it to `listSkeleton`. It's okay if `#1` is expanded (I think). I know I have to use `\expandafter` in some way, but not exactly how.


title: Biblatex - Undefined control sequence when reading bibtex-file

text: I get hundreds of these errors when I'm trying to compile a bibliography:               ./Megumi oppgave.aux:57: Undefined control sequence.     l.57 ... Morgen}}{{Aftenposten Morgen}}{{\APACyear                                                        {1987}}}}     ./Megumi oppgave.aux:59: Undefined control sequence.     l.59 \APACbibcite                      {AftenpostenMorgen1989}{\citeauthoryear {{Aftenposten Morge...          ./Megumi oppgave.aux:59: Undefined control sequence.     l.59 ...ite{AftenpostenMorgen1989}{\citeauthoryear                                                        {{Aftenposten Morgen}}{{A...      This is basically my document setup:               \documentclass[12pt, oneside, titlepage]{article}            \usepackage{geometry}                            \geometry{a4paper}                               \usepackage[utf8]{inputenc}     \usepackage[norsk]{babel}     \usepackage{csquotes}     \usepackage{parskip}     \usepackage[tc]{titlepic}          \usepackage[style=apa,sortcites=true,sorting=nyt,backend=biber]{biblatex}          \addbibresource{path/library.bib}                     \title{xx     }                    \begin{document}          \maketitle     \tableofcontents               \section{Some title}     This text is cited \cite{Moene2009f}.               \printbibliography          \end{document}        I've had great trouble trying to export my Endnote library including attachments to bibtex. I therefore use the bibtex library published by Mandeley, which seems like a good solution. Here's an excerpt from the bibtex file. It seems like the file is being read in alphabetical order when run.               @article{Atack2002,     author = {Atack, Iain},     journal = {Security Dialogue},     number = {3},     pages = {279--292},     title = {{Ethical Objectives to Humanitarian Intervention}},     volume = {33},     year = {2002}     }     @article{Kabashima2000,     author = {Kabashima, Ikuo and Marshall, Jonathan and Uekami, Takayoshi and Hyun, Dae-``Song},     journal = {Political Psychology},     keywords = {survey, data collected from national public survey},     number = {4},     pages = {779--804},     title = {{Casual cynics or disillusioned democrats? Political alienation in Japan}},     volume = {21 },     year = {2000}     }     @book{Aakvaag2008,     address = {Oslo},     author = {Aakvaag, Gunnar C},     publisher = {Abstrakt},     title = {{Moderne sosiologisk teori}},     year = {2008}     }     @incollection{Hall1997,     address = {London},     author = {Hall, Stuart},     booktitle = {Cultural representations and signifying practices},     editor = {Hall, Stuart},     publisher = {Sage},     title = {{Representation, meaning and language}},     year = {1997}      I would appreciate any help! EDIT: Thank you to the two first answers. I've set biber as the driver in TexShop's preferences and defined the correct language. It now seems to read the bib-file correctly. However, I get another error:               LaTeX Warning: Citation 'Hurd1999' on page 1 undefined on input line 49.               LaTeX Warning: Empty bibliography on input line 56.          [1] (./Megumi oppgave.aux)          LaTeX Warning: There were undefined references.               Package biblatex Warning: Please (re)run Biber on the file:     (biblatex)                "Megumi oppgave"     (biblatex)                and rerun LaTeX afterwards.


title: (1) macro argument to the left or (2) macro argument until end of the group

text: This is what I want to achieve:               { 2 \pow -(n+4) } --> {2^{-(n+4)}}      This is what I know how to do:               \def\pow#1#2{{{#1}^{#2}}}      This is what I don't like about it:               \pow{2}{-(n+4)} is ugly to me.      Now, I know that plain TeX can do things like this due to:               \over, \choose, \above      However:               \show\over      "shows that such commands are internals." I have dug into the TeX book (chapter 20), but do not see examples of how arguments can be to the left, i.e. I want something like:               \def #1\pow #2 {{#1}^{#2}}      Then, I tried things like:               \def \pow #1 \} {^{#1}\}}      However, neither of these work. Is it possible to define pow s.t.               { 2 \pow -(n+4) } --> {2^{-(n+4)}}


title: tikzpicture in figure environment, the figure is not fix to the text

text: I am writing my master thesis and want to explain how a Matlab function works with a flow chart. The flow chart is edited with "tikz" in a figure, but the figure do not stick to the corresponding subsection.                   %%%%     \subsection{Function \emph{NodesCorrectOrder.m} }          \begin{figure}[h!t]     \centering          \begin{tikzpicture}[node distance=2cm]          \centering     \node(start) [startstop] {Start};     \node(in1) [io, below of=start]{Input: Kinematic \texttt{zellen\_init} and \texttt{zellen\_def} };     \node(pro1) [process, below of=in1]{Initialization auxiliary variables counter: \texttt{NumberofCell}=1 };     \node(pro2) [process,below of=pro1]{Algorithm: Set PMC's $\Omega_{0,NumberofCell}$ with $\Omega_{t,NumberofCellDef}$: \texttt{Nodes\_init} = = \texttt{zellen\_init(:,2:1:4,NumberofCell)}, \texttt{Nodes\_deform} = = \texttt{zellen\_def(:,2:1:4,NumberofCellDef)}};     \node(pro3) [process,below of=pro2,text width=10cm,node distance=2.5cm] {Reorder corner node numeration of $\Omega_{0,NumberofCell}$ and $\Omega_{t,NumberofCellDef}$ [\texttt{Nodes}]=\texttt{CellRenumeration(Nodes,'configuration')} };     \node(dec1) [decision, below of=pro3, yshift=-1.3cm]{\adjsizetonode{\texttt{NumberofCell} $\geq $ \texttt{NumberofCellTotal} }};     \node(pro2a) [process,below of=dec1, yshift=-1.5cm]{Process 2a};     \node(pro2b) [process,right of=dec1, xshift=5cm,text width=5cm]{\texttt{NumberofCell} = \texttt{NumberofCell}+1};     \node(out1) [io, below of=pro2a]{Output: Kinematic reordered \texttt{zellen\_init} and \texttt{zellen\_def}};     \node(stop) [startstop, below of=out1] {Stop};          \draw[arrow] (start) -- (in1);     \draw[arrow] (in1) -- (pro1);     \draw[arrow] (pro1) -- (pro2);     \draw[arrow] (pro2) -- (pro3);     \draw[arrow] (pro3) -- (dec1);     \draw[arrow] (dec1) -- node[anchor=east]{YES}(pro2a);     \draw[arrow] (dec1) -- node[anchor=south]{NO}(pro2b);     \draw[arrow] (pro2b) |- (pro2);     \draw[arrow] (pro2a) -- (out1);     \draw[arrow] (out1) -- (stop);          \end{tikzpicture}          \caption{Flow diagram of Matlab function \emph{NodesCorrectOrder}}     \label{fig:NodesCorrectOrder}     \end{figure}          %%%%     \section{Failure prediction model}          %%%%     \subsection{Goals of program}          %%%%     \subsection{Analysis of sub-functions composing the failure prediction program}      The following result is shown ![enter image description here](http://i.stack.imgur.com/WMfFO.png) ![enter image description here](http://i.stack.imgur.com/YZ8LW.png) Thank you in advance for any usefull answer.


title: pdfpages package and \fbox collision

text: There seems to be a collision between `pdfpages` package and other packages that use `\fboxrule`, `\fboxsep`, etc. Here is an example: Using `frame=true`:               \documentclass[a4paper,11pt]{article}     \usepackage{fancybox}     \usepackage{pdfpages}     \begin{document}     \fancypage{\fbox}{}     \includepdf[pages=-,                 frame=true,                 scale=0.75]                 {dummy.pdf}     \end{document}      and using `frame=false`:               \documentclass[a4paper,11pt]{article}     \usepackage{fancybox}     \usepackage{pdfpages}     \begin{document}     \fancypage{\fbox}{}     \includepdf[pages=-,                 frame=false,                 scale=0.75]                 {dummy.pdf}     \end{document}      How can I overcome this problem and use `\fbox` and `pdfpages` with `frame=false`? ![](http://i.imgur.com/poFFl.png) ![](http://i.imgur.com/HkSPN.png)


title: numbering several latex figures

text: How is it possible to include figure labeling in latex? By labeling I mean that if I import several figures:               \begin{figure}[ht]         \centering         \includegraphics[height = 0.2\textwidth,width=0.8\textwidth]{Figure1.pdf}         \includegraphics[height = 0.2\textwidth,width=0.8\textwidth]{Figure2.pdf}         \includegraphics[height = 0.2\textwidth,width=0.8\textwidth]{Figure3.pdf}         \includegraphics[height = 0.2\textwidth,width=0.8\textwidth]{Figure4.pdf}         \includegraphics[height = 0.2\textwidth,width=0.8\textwidth]{Figure5.pdf}         \end{figure}      How can I number these figures, such as the first figure as (a) the second as (b) and so on... I would like these to show in the top left corner outside each graphic which I can then refer to in the caption.


title: Typesetting molecular transition lines, like CO 5-4

text: The `mhchem` lets me typeset molecules. But, I do not know how to properly typeset the energy levels important in spectroscopy. For example, in this paper, section 2.1, we find the following:               H_2O(2_{21}-1_{10})      I can do it by hand, but maybe there is a more official way?


title: Biblatex, Biber pdflatex: undefined references

text: I'm tring to use biblatex with biber (Miktex 2.9 32bit on Win7 64bit), but I can't get it to work: Here is my MWE:               \listfiles                % shows used packages in a list in log file     \RequirePackage{filecontents}     \begin{filecontents*}{\jobname.bib}     @article{author2000,       author  = {AuthorA},       title   = {Title of Article},       journal = {Name of Journal},       year    = {2000},     }     \end{filecontents*}          \documentclass{article}          \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[german]{babel}     \usepackage{csquotes}          \usepackage[backend=biber]{biblatex}     \addbibresource{\jobname.bib}          \begin{document}          \cite{author2000}          \printbibliography          \end{document}      saved as test.tex then I run:               pdflatex test     biber test     pdflatex test     pdflatex test      and I get after the last run:               LaTeX Warning: There were undefined references.     Package biblatex Warning: Please (re)run Biber on the file:     (biblatex)                test     (biblatex)                and rerun LaTeX afterwards.           )      I did clear the cache (par-* direcory). It does work when I run bibtex instead of biber. the log file after the 3rd run:               This is pdfTeX, Version 3.1415926-2.4-1.40.13 (MiKTeX 2.9) (preloaded format=pdflatex 2013.9.21)  21 SEP 2013 19:13     entering extended mode     **test     (D:\Temp\tex\test.tex     LaTeX2e <2011/06/27>     Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, ar     abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic,      croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga     lician, german, german-x-2012-05-30, greek, gujarati, hindi, hungarian, iceland     ic, indonesian, interlingua, irish, italian, kannada, kurmanji, latin, latvian,      lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerman, n     german-x-2012-05-30, nynorsk, oriya, panjabi, pinyin, polish, portuguese, roman     ian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swissgerm     an, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, usengl     ishmax, welsh, loaded.     ("D:\devtools\MiKTeX 2.9\tex\latex\filecontents\filecontents.sty"     Package: filecontents 2011/10/08 v1.3 Create an external file from within a LaT     eX document     )          LaTeX Warning: Overwriting file `./test.bib'.               ("D:\devtools\MiKTeX 2.9\tex\latex\base\article.cls"     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     ("D:\devtools\MiKTeX 2.9\tex\latex\base\size10.clo"     File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)     )     \c@part=\count79     \c@section=\count80     \c@subsection=\count81     \c@subsubsection=\count82     \c@paragraph=\count83     \c@subparagraph=\count84     \c@figure=\count85     \c@table=\count86     \abovecaptionskip=\skip41     \belowcaptionskip=\skip42     \bibindent=\dimen102     )     ("D:\devtools\MiKTeX 2.9\tex\latex\base\inputenc.sty"     Package: inputenc 2008/03/30 v1.1d Input encoding file     \inpenc@prehook=\toks14     \inpenc@posthook=\toks15          ("D:\devtools\MiKTeX 2.9\tex\latex\base\utf8.def"     File: utf8.def 2008/04/05 v1.1m UTF-8 support for inputenc     Now handling font encoding OML ...     ... no UTF-8 mapping file for font encoding OML     Now handling font encoding T1 ...     ... processing UTF-8 mapping file for font encoding T1          ("D:\devtools\MiKTeX 2.9\tex\latex\base\t1enc.dfu"     File: t1enc.dfu 2008/04/05 v1.1m UTF-8 support for inputenc        defining Unicode char U+00A1 (decimal 161)        [### CUT SOME STUFF HERE ###]        defining Unicode char U+2423 (decimal 9251)     )     Now handling font encoding OT1 ...     ... processing UTF-8 mapping file for font encoding OT1          ("D:\devtools\MiKTeX 2.9\tex\latex\base\ot1enc.dfu"     File: ot1enc.dfu 2008/04/05 v1.1m UTF-8 support for inputenc        defining Unicode char U+00A1 (decimal 161)        [### CUT SOME STUFF HERE ###]        defining Unicode char U+201D (decimal 8221)     )     Now handling font encoding OMS ...     ... processing UTF-8 mapping file for font encoding OMS          ("D:\devtools\MiKTeX 2.9\tex\latex\base\omsenc.dfu"     File: omsenc.dfu 2008/04/05 v1.1m UTF-8 support for inputenc        defining Unicode char U+00A7 (decimal 167)        [### CUT SOME STUFF HERE ###]        defining Unicode char U+2022 (decimal 8226)     )     Now handling font encoding OMX ...     ... no UTF-8 mapping file for font encoding OMX     Now handling font encoding U ...     ... no UTF-8 mapping file for font encoding U        defining Unicode char U+00A9 (decimal 169)        [### CUT SOME STUFF HERE ###]        defining Unicode char U+2423 (decimal 9251)     ))     ("D:\devtools\MiKTeX 2.9\tex\latex\base\fontenc.sty"     Package: fontenc 2005/09/27 v1.99g Standard LaTeX package          ("D:\devtools\MiKTeX 2.9\tex\latex\base\t1enc.def"     File: t1enc.def 2005/09/27 v1.99g Standard LaTeX file     LaTeX Font Info:    Redeclaring font encoding T1 on input line 43.     ))     ("D:\devtools\MiKTeX 2.9\tex\generic\babel\babel.sty"     Package: babel 2008/07/08 v3.8m The Babel package          *************************************     * Local config file bblopts.cfg used     *     ("D:\devtools\MiKTeX 2.9\tex\latex\00miktex\bblopts.cfg"     File: bblopts.cfg 2006/07/31 v1.0 MiKTeX 'babel' configuration     )     ("D:\devtools\MiKTeX 2.9\tex\generic\babel\germanb.ldf"     Language: germanb 2008/06/01 v2.6m German support from the babel system          ("D:\devtools\MiKTeX 2.9\tex\generic\babel\babel.def"     File: babel.def 2008/07/08 v3.8m Babel common definitions     \babel@savecnt=\count87     \U@D=\dimen103     )     \l@austrian = a dialect from \language\l@german      Package babel Info: Making " an active character on input line 102.     ))     ("D:\devtools\MiKTeX 2.9\tex\latex\csquotes\csquotes.sty"     Package: csquotes 2011/10/22 v5.1d context-sensitive quotations          ("D:\devtools\MiKTeX 2.9\tex\latex\etoolbox\etoolbox.sty"     Package: etoolbox 2011/01/03 v2.1 e-TeX tools for LaTeX          ("D:\devtools\MiKTeX 2.9\tex\latex\misc\etex.sty"     Package: etex 1998/03/26 v2.0 eTeX basic definition package (PEB)     \et@xins=\count88     )     \etb@tempcnta=\count89     )     ("D:\devtools\MiKTeX 2.9\tex\latex\graphics\keyval.sty"     Package: keyval 1999/03/16 v1.13 key=value parser (DPC)     \KV@toks@=\toks16     )     \csq@reset=\count90     \csq@gtype=\count91     \csq@glevel=\count92     \csq@qlevel=\count93     \csq@maxlvl=\count94     \csq@tshold=\count95     \csq@ltx@everypar=\toks17          ("D:\devtools\MiKTeX 2.9\tex\latex\csquotes\csquotes.def"     File: csquotes.def 2011/10/22 v5.1d csquotes generic definitions     )     Package csquotes Info: Trying to load configuration file 'csquotes.cfg'...     Package csquotes Info: ... configuration file loaded successfully.          ("D:\devtools\MiKTeX 2.9\tex\latex\csquotes\csquotes.cfg"     File: csquotes.cfg      ))     ("D:\devtools\MiKTeX 2.9\tex\latex\biblatex\biblatex.sty"     Package: biblatex 2013/07/15 v2.7a programmable bibliographies (PK/JW/AB)          ("D:\devtools\MiKTeX 2.9\tex\latex\biblatex\biblatex2.sty"     Package: biblatex2 2013/07/15 v2.7a programmable bibliographies (biber) (PK/JW/     AB)          ("D:\devtools\MiKTeX 2.9\tex\latex\oberdiek\kvoptions.sty"     Package: kvoptions 2011/06/30 v3.11 Key value format for package options (HO)          ("D:\devtools\MiKTeX 2.9\tex\generic\oberdiek\ltxcmds.sty"     Package: ltxcmds 2011/11/09 v1.22 LaTeX kernel commands for general use (HO)     )     ("D:\devtools\MiKTeX 2.9\tex\generic\oberdiek\kvsetkeys.sty"     Package: kvsetkeys 2012/04/25 v1.16 Key value parser (HO)          ("D:\devtools\MiKTeX 2.9\tex\generic\oberdiek\infwarerr.sty"     Package: infwarerr 2010/04/08 v1.3 Providing info/warning/error messages (HO)     )     ("D:\devtools\MiKTeX 2.9\tex\generic\oberdiek\etexcmds.sty"     Package: etexcmds 2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)          ("D:\devtools\MiKTeX 2.9\tex\generic\oberdiek\ifluatex.sty"     Package: ifluatex 2010/03/01 v1.3 Provides the ifluatex switch (HO)     Package ifluatex Info: LuaTeX not detected.     )     Package etexcmds Info: Could not find \expanded.     (etexcmds)             That can mean that you are not using pdfTeX 1.50 or     (etexcmds)             that some package has redefined \expanded.     (etexcmds)             In the latter case, load this package earlier.     )))     ("D:\devtools\MiKTeX 2.9\tex\latex\logreq\logreq.sty"     Package: logreq 2010/08/04 v1.0 xml request logger     \lrq@indent=\count96          ("D:\devtools\MiKTeX 2.9\tex\latex\logreq\logreq.def"     File: logreq.def 2010/08/04 v1.0 logreq spec v1.0     ))     ("D:\devtools\MiKTeX 2.9\tex\latex\base\ifthen.sty"     Package: ifthen 2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)     )     ("D:\devtools\MiKTeX 2.9\tex\latex\ltxmisc\url.sty"     \Urlmuskip=\muskip10     Package: url 2006/04/12  ver 3.3  Verb mode for urls, etc.     )     \c@tabx@nest=\count97     \c@listtotal=\count98     \c@listcount=\count99     \c@liststart=\count100     \c@liststop=\count101     \c@citecount=\count102     \c@citetotal=\count103     \c@multicitecount=\count104     \c@multicitetotal=\count105     \c@instcount=\count106     \c@maxnames=\count107     \c@minnames=\count108     \c@maxitems=\count109     \c@minitems=\count110     \c@citecounter=\count111     \c@savedcitecounter=\count112     \c@uniquelist=\count113     \c@uniquename=\count114     \c@refsection=\count115     \c@refsegment=\count116     \c@maxextratitle=\count117     \c@maxextratitleyear=\count118     \c@maxextrayear=\count119     \c@maxextraalpha=\count120     \c@abbrvpenalty=\count121     \c@highnamepenalty=\count122     \c@lownamepenalty=\count123     \c@maxparens=\count124     \c@parenlevel=\count125     \blx@tempcnta=\count126     \blx@tempcntb=\count127     \blx@tempcntc=\count128     \blx@maxsection=\count129     \blx@maxsegment@0=\count130     \blx@notetype=\count131     \blx@parenlevel@text=\count132     \blx@parenlevel@foot=\count133     \blx@sectionciteorder@0=\count134     \labelnumberwidth=\skip43     \labelalphawidth=\skip44     \shorthandwidth=\skip45     \biblabelsep=\skip46     \bibitemsep=\skip47     \bibnamesep=\skip48     \bibinitsep=\skip49     \bibparsep=\skip50     \bibhang=\skip51     \blx@bcfin=\read1     \blx@bcfout=\write3     \c@mincomprange=\count135     \c@maxcomprange=\count136     \c@mincompwidth=\count137     Package biblatex Info: Trying to load biblatex default data model...     Package biblatex Info: ... file 'blx-dm.def' found.          ("D:\devtools\MiKTeX 2.9\tex\latex\biblatex\blx-dm.def")     Package biblatex Info: Trying to load biblatex custom data model...     Package biblatex Info: ... file 'biblatex-dm.cfg' not found.     \c@afterword=\count138     \c@savedafterword=\count139     \c@annotator=\count140     \c@savedannotator=\count141     \c@author=\count142     \c@savedauthor=\count143     \c@bookauthor=\count144     \c@savedbookauthor=\count145     \c@commentator=\count146     \c@savedcommentator=\count147     \c@editor=\count148     \c@savededitor=\count149     \c@editora=\count150     \c@savededitora=\count151     \c@editorb=\count152     \c@savededitorb=\count153     \c@editorc=\count154     \c@savededitorc=\count155     \c@foreword=\count156     \c@savedforeword=\count157     \c@holder=\count158     \c@savedholder=\count159     \c@introduction=\count160     \c@savedintroduction=\count161     \c@namea=\count162     \c@savednamea=\count163     \c@nameb=\count164     \c@savednameb=\count165     \c@namec=\count166     \c@savednamec=\count167     \c@shortauthor=\count168     \c@savedshortauthor=\count169     \c@shorteditor=\count170     \c@savedshorteditor=\count171     \c@translator=\count172     \c@savedtranslator=\count173     \c@labelname=\count174     \c@savedlabelname=\count175     \c@institution=\count176     \c@savedinstitution=\count177     \c@lista=\count178     \c@savedlista=\count179     \c@listb=\count180     \c@savedlistb=\count181     \c@listc=\count182     \c@savedlistc=\count183     \c@listd=\count184     \c@savedlistd=\count185     \c@liste=\count186     \c@savedliste=\count187     \c@listf=\count188     \c@savedlistf=\count189     \c@location=\count190     \c@savedlocation=\count191     \c@organization=\count192     \c@savedorganization=\count193     \c@origlocation=\count194     \c@savedoriglocation=\count195     \c@origpublisher=\count196     \c@savedorigpublisher=\count197     \c@publisher=\count198     \c@savedpublisher=\count199     \c@language=\count200     \c@savedlanguage=\count201     \c@pageref=\count202     \c@savedpageref=\count203     Package biblatex Info: Trying to load compatibility code...     Package biblatex Info: ... file 'blx-compat.def' found.          ("D:\devtools\MiKTeX 2.9\tex\latex\biblatex\blx-compat.def"     File: blx-compat.def 2013/07/15 v2.7a biblatex compatibility (PK/JW/AB)     )     Package biblatex Info: Trying to load generic definitions...     Package biblatex Info: ... file 'biblatex.def' found.          ("D:\devtools\MiKTeX 2.9\tex\latex\biblatex\biblatex.def"     File: biblatex.def      \c@textcitecount=\count204     \c@textcitetotal=\count205     \c@textcitemaxnames=\count206     \c@biburlnumpenalty=\count207     \c@biburlucpenalty=\count208     \c@biburllcpenalty=\count209     \c@smartand=\count210     )     Package biblatex Info: Trying to load bibliography style 'numeric'...     Package biblatex Info: ... file 'numeric.bbx' found.          ("D:\devtools\MiKTeX 2.9\tex\latex\biblatex\bbx\numeric.bbx"     File: numeric.bbx 2013/07/15 v2.7a biblatex bibliography style (PK/JW/AB)     Package biblatex Info: Trying to load bibliography style 'standard'...     Package biblatex Info: ... file 'standard.bbx' found.          ("D:\devtools\MiKTeX 2.9\tex\latex\biblatex\bbx\standard.bbx"     File: standard.bbx 2013/07/15 v2.7a biblatex bibliography style (PK/JW/AB)     \c@bbx:relatedcount=\count211     \c@bbx:relatedtotal=\count212     ))     Package biblatex Info: Trying to load citation style 'numeric'...     Package biblatex Info: ... file 'numeric.cbx' found.          ("D:\devtools\MiKTeX 2.9\tex\latex\biblatex\cbx\numeric.cbx"     File: numeric.cbx 2013/07/15 v2.7a biblatex citation style (PK/JW/AB)     Package biblatex Info: Redefining '\cite'.     Package biblatex Info: Redefining '\parencite'.     Package biblatex Info: Redefining '\footcite'.     Package biblatex Info: Redefining '\footcitetext'.     Package biblatex Info: Redefining '\smartcite'.     Package biblatex Info: Redefining '\supercite'.     Package biblatex Info: Redefining '\textcite'.     Package biblatex Info: Redefining '\textcites'.     Package biblatex Info: Redefining '\cites'.     Package biblatex Info: Redefining '\parencites'.     Package biblatex Info: Redefining '\smartcites'.     )     Package biblatex Info: Trying to load configuration file...     Package biblatex Info: ... file 'biblatex.cfg' found.          ("D:\devtools\MiKTeX 2.9\tex\latex\biblatex\biblatex.cfg"     File: biblatex.cfg      )))     Package csquotes Info: Checking for multilingual support...     Package csquotes Info: ... found 'babel' package.     Package csquotes Info: Adjusting default style.     Package csquotes Info: Redefining alias 'default' -> 'german'.     Package biblatex Info: Trying to load language 'german'...     Package biblatex Info: ... file 'german.lbx' found.          ("D:\devtools\MiKTeX 2.9\tex\latex\biblatex\lbx\german.lbx"     File: german.lbx 2013/07/15 v2.7a biblatex localization (PK/JW/AB)     )     (D:\Temp\tex\test.aux)     LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 22.     LaTeX Font Info:    ... okay on input line 22.     LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 22.     LaTeX Font Info:    ... okay on input line 22.     LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 22.     LaTeX Font Info:    ... okay on input line 22.     LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 22.     LaTeX Font Info:    ... okay on input line 22.     LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 22.     LaTeX Font Info:    ... okay on input line 22.     LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 22.     LaTeX Font Info:    ... okay on input line 22.     Package biblatex Info: Input encoding 'utf8' detected.     Package biblatex Info: Automatic encoding selection.     (biblatex)             Assuming data encoding 'utf8'.     Package biblatex Info: Trying to load bibliographic data...     Package biblatex Info: ... file 'test.bbl' not found.          No file test.bbl.     Package biblatex Info: Reference section=0 on input line 22.     Package biblatex Info: Reference segment=0 on input line 22.          LaTeX Warning: Citation 'author2000' on page 1 undefined on input line 24.               LaTeX Warning: Empty bibliography on input line 26.          [1          {C:/ProgramData/MiKTeX/2.9/pdftex/config/pdftex.map}] (D:\Temp\tex\test.aux)           *File List*     filecontents.sty    2011/10/08 v1.3 Create an external file from within a LaTeX      document      article.cls    2007/10/19 v1.4h Standard LaTeX document class       size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)     inputenc.sty    2008/03/30 v1.1d Input encoding file         utf8.def    2008/04/05 v1.1m UTF-8 support for inputenc        t1enc.dfu    2008/04/05 v1.1m UTF-8 support for inputenc       ot1enc.dfu    2008/04/05 v1.1m UTF-8 support for inputenc       omsenc.dfu    2008/04/05 v1.1m UTF-8 support for inputenc      fontenc.sty        t1enc.def    2005/09/27 v1.99g Standard LaTeX file        babel.sty    2008/07/08 v3.8m The Babel package      bblopts.cfg    2006/07/31 v1.0 MiKTeX 'babel' configuration      germanb.ldf    2008/06/01 v2.6m German support from the babel system     csquotes.sty    2011/10/22 v5.1d context-sensitive quotations     etoolbox.sty    2011/01/03 v2.1 e-TeX tools for LaTeX         etex.sty    1998/03/26 v2.0 eTeX basic definition package (PEB)       keyval.sty    1999/03/16 v1.13 key=value parser (DPC)     csquotes.def    2011/10/22 v5.1d csquotes generic definitions     csquotes.cfg         biblatex.sty    2013/07/15 v2.7a programmable bibliographies (PK/JW/AB)     biblatex2.sty    2013/07/15 v2.7a programmable bibliographies (biber) (PK/JW/AB     )     kvoptions.sty    2011/06/30 v3.11 Key value format for package options (HO)      ltxcmds.sty    2011/11/09 v1.22 LaTeX kernel commands for general use (HO)     kvsetkeys.sty    2012/04/25 v1.16 Key value parser (HO)     infwarerr.sty    2010/04/08 v1.3 Providing info/warning/error messages (HO)     etexcmds.sty    2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)     ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)       logreq.sty    2010/08/04 v1.0 xml request logger       logreq.def    2010/08/04 v1.0 logreq spec v1.0       ifthen.sty    2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)          url.sty    2006/04/12  ver 3.3  Verb mode for urls, etc.       blx-dm.def     biblatex-dm.cfg     blx-compat.def    2013/07/15 v2.7a biblatex compatibility (PK/JW/AB)     biblatex.def         standard.bbx    2013/07/15 v2.7a biblatex bibliography style (PK/JW/AB)      numeric.bbx    2013/07/15 v2.7a biblatex bibliography style (PK/JW/AB)      numeric.cbx    2013/07/15 v2.7a biblatex citation style (PK/JW/AB)     biblatex.cfg           german.lbx    2013/07/15 v2.7a biblatex localization (PK/JW/AB)      ***********               LaTeX Warning: There were undefined references.               Package biblatex Warning: Please (re)run Biber on the file:     (biblatex)                test     (biblatex)                and rerun LaTeX afterwards.          Package logreq Info: Writing requests to 'test.run.xml'.      )      Here is how much of TeX's memory you used:      7014 strings out of 493921      113725 string characters out of 3149287      501868 words of memory out of 3000000      10260 multiletter control sequences out of 15000+200000      5179 words of font info for 16 fonts, out of 3000000 for 9000      843 hyphenation exceptions out of 8191      44i,4n,35p,789b,1346s stack positions out of 5000i,500n,10000p,200000b,50000s      <C:\Users\RafiK\AppData\Local\MiKTeX\2.9\fonts\pk\ljfour\jknappen\ec\dpi600\     ecbx1000.pk> <C:\Users\RafiK\AppData\Local\MiKTeX\2.9\fonts\pk\ljfour\jknappen\     ec\dpi600\ecrm1000.pk>     Output written on test.pdf (1 page, 5256 bytes).     PDF statistics:      25 PDF objects out of 1000 (max. 8388607)      0 named destinations out of 1000 (max. 500000)      1 words of extra memory for PDF output out of 10000 (max. 10000000)      could you please help me find the bug I have somewhere? edit: added test.blg               [0] Config.pm:361> INFO - This is Biber 1.5     [1] Config.pm:364> INFO - Logfile is 'test.blg'     [134] biber-MSWIN:190> INFO - === %a %b %e, %Y, %H:%M:%S     [135] Biber.pm:327> INFO - Reading 'test.bcf'     [258] Utils.pm:167> WARN - Warning: Found biblatex control file version 2.5, expected version 2.3     [259] Biber.pm:619> INFO - Found 1 citekeys in bib section 0     [294] Biber.pm:2976> INFO - Processing section 0     [331] Biber.pm:3086> INFO - Looking for bibtex format file 'test.bib' for section 0     [337] bibtex.pm:889> INFO - Decoding LaTeX character macros into UTF-8     [339] bibtex.pm:764> INFO - Found BibTeX data source 'test.bib'


title: Macro to get character width in ConTeXt

text: # Background Looking to adjust the location of the first letter in a word based on its width. # Problem The calculation resembles:               \define[1]\StyleChapterChar{%       \cldcontext{string.sub("#1",1,1)}%     }          % Use a nested frame to keep the overlain large letter together with     % the chapter title.     \define[1]\StyleChapter{%       \StyleChapterFramed{%         \framed[align=right, frame=off]{%           \startoverlay             \color[blue]{%               \StyleChapterChar{#1}%             }             \vskip-1.9em\hskip\dimexpr\averagecharwidth*33/10#1           \stopoverlay         }       }     }      Here, `3.3 * \averagecharwidth` is used to offset the text. This causes the horizontal offset of the emphasized first character in the word to vary wildly between an `A` and an `I`. What I would like is to replace this calculation (`3.3 * \averagecharwidth`) with one that uses the character width (e.g., `3.3 * \charwidth{\StyleChapterChar}`) # Question How do you get the width of a single character, when you don't know what that character is? # Ideas I've tried a few things so far:               \define[1]\StyleChapterCharWidth{       \dimexpr\fontcharwd\font`#1     }          \define[1]\StyleChapterCharWidth{       \fontcharwd\font`#1     }      It seems like the back-tick (`) character indicates that the next character should be treated literally. # Related   * https://gitorious.org/context/context/source/8e052e94b8b3ca08900ab4fe0a5bf110f6a52327:tex/context/base/lang-frq.mkii   * Determine width of verbatim characters   * How to set the width of the label of a description to the width of a string of text in ConTeXt?


title: How can I set a margin equal to "five spaces"?

text: How can one set a margin equal to five spaces? Especially for a quote.


title: When generating html, how do you specify image size?

text: I am using htlatex (or as many people call it tex4ht) to generate html and I have included some graphics. Htlatex seems to ignore all the size arguments I give the image size. I've tried specifying:               width=\textwidth     width=2in     width=1024px     width=1024pt      All of these have been ignored. **Can you specify a size for the image when using htlatex to generate an html version of your document? If yes how does one specify the image size?** Right now I am editing each picture to be the correct size but this is bothersome... I would much rather have one high res picture and then specify a smaller size.


title: Can you use LaTeX packages in ConTeXt/emulate ConTeXt in LaTeX?

text: Is it possible to use `LaTeX` packages in `ConTeXt`? I want to know because I'd like to use `ConTeXt`'s greater formatting faciliies but I also want to use several `LaTeX` packages (`crossword` and `xskak` in particular.) in my document. Are there _**any**_ methods to do this? PS. Despite similarities to this question, please do not close this question as a duplicate due to the fact that that question _never_ got a satisfactory answered (at least, not one applicable to my situation.). **EDIT:** As an alternative I _would_ appreciate methods of getting ConTeXt- level formatting in LaTeX+LuaTeX (Why LuaTeX? Font switching + more features than XeTeX.).


title: What to download, proTeXt or MiKTeX?

text: What exactly is included in the proTeXt's 1.1GB package and why would you rather download that compared to just downloading the humble 170MB MiKTeX basic install? Also, why is proTeXt's file size so enormous?


title: Good Style of Creating a Signature all within LaTeX

text: I have a small task that involves trying to get a signature using LaTeX fonts. I want to be able to make the signature look as handwritten as possible (pen/marker) using the LaTeX fonts. Also like to control the location place of the signature on the horizontal line (i.e., placing it in the front, middle, or towards the end of the line. Also, to mention, it would be nice to be able to get the text to go through the line and come back above the line just how a typical signature would resemble. This is an example of what I would like for the output signature: ![Example Signature:1](http://i.stack.imgur.com/xGInt.png) Below is how I would like it to be instead of having the `X` in front of the signature. ![Example Signature:2](http://i.stack.imgur.com/yIiL5.png)


title: Can't get AUCTeX to do a preview

text: I'm running Arch Linux, latest version of Emacs, and trying to get a preview of the document using `c-c c-p c-p` or any that will do a preview after `c-c c-p ...` and just can't get the thing to preview. I keep getting and error message that > error in process sentinenl: no image was found or something to that effect. I even tried getting around this but going for `M-X preview-buffer` but I still get the same error. This is very strange to me, I saw some issues perhaps relating to Ghostscript, but I have 9.10 already installed so I don't see the problem. Ideas?


title: tocloft cross-references a section as a subsection

text: I have document which creates a new list of examples. The list has a label `\label{sec:examples}` which labels the title of the list, which is rendered as a section. However, cross referencing `sec:examples` results in a reference to a subsection. This is a small but complete example that demonstrates the problem:               \documentclass[conference]{IEEEtran}          \usepackage{lipsum}     \usepackage[titles]{tocloft}          \newcommand{\listexampletitle}{\addtocounter{section}{1}\thesection.~List of Examples\label{sec:examples}}          \newlistof[section]{examples}{exp}{\listexampletitle}          \newcommand{\examplelist}[1]{%       \refstepcounter{examples}       \addcontentsline{exp}{examples}       {\protect\numberline{\theexamples}#1}     }          \newcommand{\example}[1]{\examplelist{#1}\textbf{Example \theexamples}: #1}          \cftsetindents{examples}{1.5em}{3.0em}     \cftpagenumbersoff{examples}     \setlength{\cftexamplesnumwidth}{1.5cm}               \begin{document}          \title{Example IEEE with tocleft}          \author{}          \maketitle          \section{Introduction}     Examples are summarised in Section \ref{sec:examples}.          \example{A first example}          \section{A section}     \subsection{A subsection}     \lipsum[1]{}     \example{A second example}          \listofexamples          \end{document}      A picture of the relevant output is below, with the problematic line highlighted in yellow. The first line of the Introduction, which is rendered as:               Examples are summarised in Section II.I.      should read:               Examples are summarised in Section III.      How do I correct this? Output: ![enter image description here](http://i.stack.imgur.com/307nL.png)