1
vote
1answer
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( ...
1
vote
1answer
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) ...
1
vote
1answer
706 views

\printbibliography[heading=none] with apacite

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 ...
1
vote
1answer
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 ...
1
vote
1answer
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, } ...
1
vote
1answer
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 ...
1
vote
1answer
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 ...
1
vote
1answer
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 ...
1
vote
1answer
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 ...
1
vote
1answer
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 ...
1
vote
1answer
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} ...
1
vote
1answer
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 ...
1
vote
1answer
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 ...
1
vote
2answers
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. ...
1
vote
1answer
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 ...
1
vote
1answer
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 ...
1
vote
2answers
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 '... ...
1
vote
1answer
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 ...
1
vote
1answer
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 ...
1
vote
2answers
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?
1
vote
1answer
724 views

page header logo overlapping page header text

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} ...
1
vote
1answer
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 ...
1
vote
1answer
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 ...
1
vote
1answer
882 views

Installing upgreek.sty with macports

How to install upgreek.sty using macports? Which of texlife-* packages should I install for it?
1
vote
2answers
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 ...
1
vote
1answer
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 ...
1
vote
1answer
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 ...
1
vote
1answer
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?
1
vote
1answer
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 ...
1
vote
1answer
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} ...
1
vote
1answer
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 ...
1
vote
1answer
10k views

ngerman.sty not found

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) ...
1
vote
1answer
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 ...
1
vote
1answer
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{ ...
1
vote
1answer
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: ...
1
vote
1answer
58 views

Auto align is not straight

I have this code: \documentclass[11pt,a4paper]{report} \usepackage[utf8x]{inputenc} \newcommand{\lt}{\latintext} \newcommand{\gt}{\greektext} \usepackage[english,greek]{babel} \begin{document} ...
1
vote
1answer
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 ...
1
vote
1answer
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 = ...
1
vote
1answer
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 ...
1
vote
1answer
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 ...
1
vote
1answer
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 ...
1
vote
2answers
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} ...
1
vote
1answer
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 ...
1
vote
1answer
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 ...
1
vote
1answer
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 ...
1
vote
1answer
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
1
vote
1answer
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 ...
1
vote
1answer
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 ...
1
vote
1answer
86 views

How do you test whether or not a ConTeXt module is installed?

How do you test whether or not a ConTeXt module is installed? I have run first-setup.bat --modules=all but how do I test if all the modules are installed?
1
vote
1answer
506 views

Selecting specific slides for handout?

Consider the following MWE: \documentclass{beamer} \begin{document} \begin{frame} \scriptsize \begin{enumerate} \item<+-> \item<2,3,5,7,11> ...

15 30 50 per page