# All Questions

200 views

### Don't break lines at certain characters in lstlisting

Is it possible to configure lstlisting such that it doesn't break lines at certain characters? In this example, a line break is inserted after the opening parenthesis: public void someMethod( ...
228 views

### Help to change svg package to include a 600dpi pdf instead of creating huge pdf with vector graphic. (Downgrade PDF)

I am using the svg package to include an svg file with transparent 3D graphic and latex code to be set at the right label positions. I tried many different methods to do that (matlab->eps+tex file) ...
706 views

I want to hide the title of the bibliography, which is usually done by using \printbibliography[heading=none] command instead of \bibliography, but the command is undefined in apacite package. Are ...
149 views

### Changing the enumerate numbering style

Is it possible to change the enumerate style from: 1. 2. 3. to (1) (2) (3) ? I only know how to change it to roman letters. Thanks. EDIT: Right now I try the following ...
118 views

### How can I have a hyphenated XML tag in a listing?

Consider the following valid XML according to http://stackoverflow.com/a/1478623/1443496? \documentclass{article} \usepackage{listings} \lstset{ language=xml, morekeywords=some-tag, } ...
140 views

### \parskip setting effect on page break?

What is the effect of the \parskip-setting on where LaTeX does the page break? I wonder why there is a page break before the paragraph-headline with my \parskip settings (unless I insert the ...
739 views

### Writing algorithms in pseudocode in latex

Why if I write : \State \textbf{upon event $< Init >$ do} \For{\textbf{all $n$} $\in N$} \State $value[r]=0$; \EndFor I have this output: but I want: How ...
577 views

### Paper size incorrect when using latex instead of pdflatex

Somewhat opposite to other problems I found, my document size is correct when compiling with pdflatex but is not right when compiling with latex. I'm using a custom documentclass for a conference but ...
402 views

### Should one Share their Latex Documents on GitHub [closed]

I am not sure if this question exactly fits here, but this is the best to my judgement. I understand GitHub is mainly for posting hobby (or commercial) programming projects . I was wondering, does it ...
8k views

### Cannot install MiKTeX 2.9 after a new Windows installation [closed]

I used to have MiKTeX working well. I then recently had to reinstall Windows, hence I have to reinstall MiKTeX. It always stops during the installation and here is the log file: Loading package ...
197 views

### Axes for bivariate normal distribution with tikz

I got the following figure: with this code: \documentclass{standalone} \usepackage{pgfplots} \begin{document} \def\centerx{2} \def\centery{-1} \begin{tikzpicture} \begin{axis} ...
1k views

### Include logo in thesis using \maketitle

I'm writing my thesis using a custom made class, namely ecsthesis.cls (available here https://www.sharelatex.com/templates/thesis/university-of-southampton-thesis/). I want to include the university ...
1k views

### How to escape properly and output regex in latex?

Escaping regex is a heck of a work on LaTeX. How should I write in latex syntax such that I can output the following regexes: ^$$?\s?\w{1,5}\s*[):.]\s* and [$\(].{1,}[$$$] I've tried ...
247 views

### Figure with subfigures containing text and a drawing

I am trying to do something similar to this but I have no idea on how to do it. Usually when I add figures i use the \begin{figure}, the problem is that I have no idea on how to achieve this result. ...
93 views

### Active quotes in macro

I would like to use csquotes to activate quotes. That is, taking This is a "quote" inside other text. and turning it into This is a quote'' inside other text. csquotes makes this possible via ...
81 views

### How to customize the chapter in front of figure page in listoffigures?

I am using the the packages \usepackage{url} \usepackage{graphicx} \usepackage{rotating} \usepackage[hypcap]{caption} \usepackage{hyperref} to include referencable graphics in my work. The ...
830 views

### cross-reference chapter title from different file

My dissertation is several chapters, each written in a different .tex file. How can I reference the chapter number from one chapter in the text of another? For example, how would I produce '... ...
669 views

### Using LuaTex / LuaLaTeX with Latexian on Mac [duplicate]

I've been using Latexian for a while. Its LivePreview feature is very convenient, which is why I'm keeping using it. Recently, I've heard about LuaTeX / LuaLaTeX. I tried a couple of examples but I ...
1k views

### Inserting Appendices after Bibliography

Hi I am using the Sunil Patel thesis template for my thesis. This is dependent on a thesis.cls file that is here. The problem is that my college requires the Appendices to be after the Bibliography ...
138 views

### How to limit the header to the page width?

I have a long header and LaTeX inserts it broader than the page width. How do make the header fit on the page?
724 views

I am using the following LaTeX source to place a logo into page header: \pagestyle{fancy} \chead{\includegraphics[width=1.5cm,keepaspectratio]{./docs/log4cplus}} \setlength{\headheight}{47.0pt} ...
608 views

### Two column Algorithmicx with variable-width columns

In another post, @Jubobs suggested to use the multicol package around an algorithmic environment, to typeset the algorithm in two columns. Recently, I faced a rather aesthetic issue: It might be the ...
3k views

### pdflatex can't find aux file [closed]

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 ...
882 views

### Installing upgreek.sty with macports

How to install upgreek.sty using macports? Which of texlife-* packages should I install for it?
197 views

### how can I improve the look and impact of thi tikz tree diagram

\documentclass{beamer} \usepackage{tikz} \usetikzlibrary{shapes,arrows} % styles for flowcharts \tikzstyle{block} = [rectangle, draw, text width=5em, text centered, rounded corners, minimum ...
361 views

### Using variables to draw a tikz diagram

I am defind my own command to plat a diagram with tikz. Instead of constant values I rather want to pass numbers to my command which determine the height of the bars in my diagram. Problem: I am ...
112 views

### Can a latex IF loop take a perl variable?

I have a script written in perl which harvest data from an sql database, then produces a printed report in latex. I was looking to put an IF loop in the latex part of the script to print one set of ...
327 views

### “P” symbol for notation of a plane in LaTeX

My professor uses this semi-cursive P for the notation of a plane in LaTeX, though I cannot seem to locate it. I used Detexify, but no luck. Any ideas?
212 views

### Using parskip with ntheorem in a book

I am writing a mathematical book and would like to use ntheorem for theorems. Also, I would like to use parskip, because I like these styles of paragraphs more. My problem is that as soon as I include ...
265 views

### Drop shadow of node with pgfplot inside

I have this code: \documentclass[tikz]{standalone} \usepackage{pgfplots} \usetikzlibrary{shadows} \begin{document} \begin{tikzpicture} \node[drop shadow,draw,fill=green] { \begin{tikzpicture} ...
558 views

### Table next to figure using subfig

I'm trying typeset a table next to a figure using subfig, but I cannot get them to align properly. I have found a similar(/identical) question here, but the solutions/suggestions do not seem to be ...
10k views

Whenever I try to compile my .tex file, I get the following error: ! LaTeX Error: File ngerman.sty not found. Type X to quit or to proceed, or enter new name. (Default extension: sty) ...
75 views

### Referencing a database

I'm looking for a template of how to reference a database, such as data.stackexchange.com. Should it simply be considered as an electronic source, or is there a certain way such items should be ...
140 views

### How to Create an un-ordered tree in LaTeX?

Is there a way to create a tree in LaTeX without using any "ordering" ? So far, all the examples I came across are structured in this way child{ node [arn_n] {20} child{ ...
150 views

### how do I quote a numbered list

I want to make a document which replies to a list of points made in an article as follows: " Topic point 1 text point 2 text Topic point 3 text" I tried to achieve this by writing: ...
58 views

### Auto align is not straight

215 views

### Problem with Endfloat

What am I doing wrong with the following MWE? The numbering is incorrect and a table which should be listed at the end of chapter 2 is being listed at the end of chapter 1 for some reason. I need ...
789 views

### PGFPlots: semilogxaxis and y axis tick marks

I am trying to set up a semilogxaxis in pgfplots. The image I am trying to generate is but my code below is generating \documentclass[tikz]{standalone} \usepackage{pgfplots} \pgfplotsset{compat = ...
220 views

### How to create a macro for a customized frame in Beamer?

I'm looking for a way to create a macro like \chapterFrame{Title of the chapter}which adds a new slide customized as I want. As an (ugly) example, here is what it could look like. I tried the ...
461 views

### Autocompletion in texstudio : \frac

I recently moved from Texmaker to TeXstudio, and there is one thing in autocompletion that I loved with Texmaker and which doesn't seem to work by default on TeXstudio : when I would begin to type ...
321 views

### longtable caption (make it look like table caption as defined by a LaTeX class)

I have the following MWE with a table and a longtable, and I just want that the longtable caption looks exactly as the table caption without modifying anything from the table above (just the ...
10k views

### Importing JPG files into LaTeX [duplicate]

I would like to import JPG file into my document in LaTeX. The code below works but only for EPS files, but I need JPG. How can I fix it? \documentclass{article} \usepackage{graphicx} ...
301 views

### First line of ltxtable/longtable indented

I am using the ltxtable package to be able to set the longtable to \textwidth I have \setlength{\parindent}{0pt}' in the preamble. The first line of each longtable is indented, how do I get rid of ...
172 views

### Lightening Font in Latex [closed]

How can you make font for one paragraph of a light nature? The basic setup is: \section{Title \vspace{-5mm} \paragraph{....} That entire paragraph is bold and I haven't been able to find a way to ...
6k views

### start section numbering with 0 not 1 LaTex article class [duplicate]

In my thesis, my examiners need the section numbering to start with 0 and not from 1. The structure is somewhat like \documentclass[12pt]{report} \begin{document} \chapter{First} \section{first ...
331 views

### How to avoid footnote split? [duplicate]

Maybe the second footnote is too long, it splits into two parts at the bottom of the page as following picture shows. What should I do to avoid this? Thanks
407 views

### pdfLatex warning : PDF inclusion : invalid other resource which is no dict : ignored

i am receiving this problem when attempting to add an existing PDF into a latex document pdfTeX warning: /usr/texbin/pdflatex (file ./filename.pdf): PDF inclusion : invalid other resource which is ...
166 views

### Error with tablefootnote in newest version (1.1a) of package

With the newest version of the package tablefootnote (version 1.1a), something is broken when using \tablefootnote within a table environment, something I discovered when a paper I am writing refused ...