# All Questions

2 views

### Value of counter from pgffor in a complex example

From this answer I learned how to print rows into 1 column table using pgffor: | 1 | | 2 | | 3 | Code looks like this: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{pgffor} \...
9 views

### pgfplot: 2D with line color depending on another value

I would like to create a 2 dimensional plot with several lines. One of the lines depends on additional values in third dimension. Now i'd like to make the line color of this "3d-line" depending on ...
14 views

### How to get the value of counter in pgffor while using \expandafter

I looked into this answer and tried to improve it. My goal is to get this table: | 1 | | 2 | | 3 | But instead I get this: | 1 | | 1 | | 1 | Code: \documentclass{article} \usepackage[utf8]{...
4 views

### latexdiff for IEEE trans using texstudio

Trying to use latexdiff for an IEEE paper, I got lots of errors for compiling it using Pdflatex. Any idea why? what is the best configuration of latexdiff. Note that the original documents was ...
11 views

### standalone not working with psfrag

I have the following MWE \documentclass{standalone} \usepackage{psfrag} \begin{document} text \end{document} I use latex and dvipdf. I have two machines with MacTex-2016. I've just updated with ...
14 views

### Defining different fonts for \title and \thanks in memoir

I wanted to change the font for the \title and \thanks. This can be done by adding the font in front of the text in whatever I want to change, e.g. \title{\sffamily{My Title}}. I guess there is a ...
14 views

### invoking mathtype from texsudio

Any idea how can I automatically invoke Mathtype from texstudio using macro (javascript) and put the formula back onto texstudio automatically. It can be done manually, but I want to know is it ...
41 views

### Represent pseudocode in tabular format

I want to write my pseudocode in the below tabular format. It seems that authors of above pseudocode have used some special latex package. Can anyone help me by either naming the package which has ...
7 views

### vertically center on beamer slide (excluding navigation)

I would like to center some content on a beamer frame that has navigation pane on top (theme Darmstadt). Currently I just pass the option c to the frame and it centers the content on the entire slide. ...
12 views

### Basic Random Number \pgf Question

In my attempt to learn random numbers, I basically copied the only line of code out of the TikZ/PGF Manual. But it does not compile. Why? p.s. I am a relative LaTeX/TikZ/programming newbie. \...
25 views

### Horizontal sections of a page

I want to divide a portrait A4 paper into three horizontal sections. I know I can use \mbox as I don't want any borders around these sections but the problem arises as I have an image which acts as ...
9 views

### How to place picture in three d

How do you add a 2 dimensional picture into a three dimensional drawing in asymptote? I have tried add(picture, triple), but it gives no output. import three; picture p; draw(p, (0,0)--(1,1)); ...
5 views

### splitbib: conflict between \SBresetdepth and export option?

I use the splitbib package to produce a publication list broken into sections for different kinds of publications. I want each section to begin numbering at 1. For this purpose splitbib provides the ...
22 views

### Unable to fix the bibliography. Bold question mark persists

I am unable to fix the bibliographical error. The bold question mark persists. Can you please help me understand what is going on? Although the problem of the bold question mark is common and widely ...
17 views

### Manual install of Biber-BibLaTeX on MacTex 2016

Due to compatibility issues with my template files, I have to use previous versions of Biber 2.3 and BibLaTeX 3.2 (MacTeX 2016), which I downloaded from source forge. But I have found no install ...
11 views

### Path Problems Again with El Cap 10.11.6?

Last year I updated my mac to El Capitan, and followed the instructions here to fix the path issues. It was easy! Today I updated to 10.11.6. The preferences in TeXMaker (my GUI of choice) reverted ...
18 views

### Using Greek Letters - Symbols in regular text (LyX)

I have been having trouble in writing Greek letters like: μ,α in regular text when using LyX. When I try to include the package "babel-greek" the programme does not compile the pdf file. I checked ...
21 views

### Adding numbered appendices as section in documentclass report

I'm writing a text using the documentclass report and I can't find a way to add appendices like this within the article class: \documentclass{article} \begin{document} \tableofcontents \section{First ...
17 views

### tabularx table formats poorly when too long

I have a long, multi-columned tabularx table in a document I'm working with. I'm finding that under certain circumstances the table's formatting breaks. My minimum working example (works with the ...
26 views

### trying to plot some nodes [duplicate]

hello all i need to:- make marked blue lines longer [ so i can put the multiplication-red-block their] i want to make h_5[n] more big i want to define a variable (xx for example) to make it enter ...
16 views

If you use a pdf-viewer to add comments to a pdf document, you do not modify the typesetting - of course. I would like to have the same behaviour using a command of the pdfcomment package (or other ...
26 views

### pgffor inside table [duplicate]

How can I use pgffor in tabular environment to output many rows? Here is what I tried: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{pgffor} \begin{document} %works correctly \...
29 views

### How to put a period between the chapter number and chapter title in the headings using scrrept, scrlayer-scrpage, and scrheadings?

By default, the headings with scrrept, scrlayer-scrpage, and scrheadings are of the form "«number» «title»" in the headings for numbered chapters. I am wishing to change it to "Chapter «number». «...
48 views

### Draw a wattmeter

How can I draw a wattmeter using LaTeX and circuitikz? I want to use the one with a big circle and W inside, and 4 circles (up, down, left right) which contain respectively 2 + and 2 -, Thank you ...
11 views

### Knitr: Referencing data from a figure later in the paper

I'm working with knitr Is it possible to reference data from a figure in the paper? I have a code chunk that produces a figure in the appendix of my paper. I know how to reference the figure itself ...
33 views

### How to get caption to line break in scrbook?

So I have a large project and one of the pictures is quite small, but has a very large caption. Currently the caption just extends into the page of text and all of the solutions I have seen for ...
20 views

### Customize article template in LyX

Lyx-2.2.0, article template and newbie in LyX and LaTeX. Planning to use LyX for office needs, like reports, letters, code listings etc. So I need to customize (create new template, based on default) ...
18 views

### Shuffling the first name and surname of authors in latex

I want to have my references as first and middle name initials and, surname. Instead, I am getting the opposite. My bibtex (.bib) library is ref and .bst is model4-names provided by Elsevier. is The ...
21 views

### Updating value for \graphicspath within document

I am familiar with \graphicspath and have used it in numerous papers where all of my figures are in a single directory. However, I am now working on a larger project and I have images hierarchically ...
25 views

### One side page in a two side document in Lyx

I am writing my thesis in a two sided document style. However I want the title page, certificate page and declaration page to be in a single sided format. How do I do this in LYX ? I used standard ...
122 views

### How to draw Block diagram like this in LaTeX?

I like to draw the following diagram: So far i succeed to draw the the following: \begin{tikzpicture}[ block/.style={draw, minimum width=10mm, minimum height=6mm}, sum/.style={circle, draw, ...
10 views

### texdiff summary statistics

I have old chapter .tex files that I have edited over months, and now I want to get metrics of how much I have changed the files. One option is texdiff, followed by a grep on DIF. How to create a &#...
95 views

### How can I know the number of expandafters when appending to a csname macro?

I am looking for an informative answer here. If I want to append to a macro, I have a couple of options, each depending on whether I want the items fully expanded, partially expanded (a certain number ...
24 views

### Map slide number to source file

Hy, guys! I prepared more than 160 beamer draft slides for a Course articulated in 10, three hour, classes. It is a draft version: I plan to change some portions in the next weeks. My source is ...
23 views

### First row of array is the first line

I want to code an array on which the first row would be the first line. I used the array environment. Here is what I get but it's not what I want (the line is centered on the second row). Here is ...
11 views

### Texmaker; some shortcuts don't work

For example, this shortcut on Texmaker 4.4.1-1.1 on Ubuntu 16.04 doesn't work: CTRL+F. Did I miss something? Because it's present in the keyboard shortcut list in the configuration options. Some ...
22 views

Exploring the site, I get only this method in order to replace the ugly "Content" by "Table of content" on the title: \renewcommand\contentsname{Table of Contents} Is there a package missing? \...
16 views

### Producing an a transducer directivity pattern with dB scale

Edit: Question updated to address comments from Willie Wong. The directiviy pattern now plots as I've added 90 to each value. I need the y-axis to read from -N to 0 dB where N will vary, however when ...
124 views

### Out of order numbering counter

I work in a department that writes requirement documents for our workflow. So, a product will have a document created before design that says: Req 1: product must do A Req 2: product must do B Req ...
42 views

### Why with XeLaTeX in TeXLive, is TeX Gyre Pagella Math font not found

I'm using TeXLive 2016 (under OS X). If I run XeLaTeX on the following file (which just modifies the distributed TeX Gyre file test-xelatex-texgyre_pagella_math.tex, I get error ... fontspec error: "...
21 views

### Argument of \addcontentsline has an extra }

I'm having trouble apparently with the \addcontentsline command: ! Argument of \addcontentsline has an extra }. <inserted text> \par l.157 \addcontentsline {toc}{section}{Introduction} Here's ...
25 views

### Pie graph with outside text

I constructed a pie chart based on a code I found on the internet and I already tried to make some changes because it's all messy and I wanted, when the percentags are too small (<3%) to have ...
22 views

### Trying to use reledmac with luatexja

I am using MikTeX 2.9, and trying to get the reledmac package working with luatexja. Both packages work fine if I try to use them on their own, but if I combine them I get the same error whether or ...
33 views

### converting latex project into ms word .docx

I am writing my history doctoral dissertation in LaTeX. I had been previously (PhD dissertation: templates vs scratch) convinced in this forum to take this path. I like LaTeX for its ease with ...
28 views

### Appendix in ToC

I have problem with appendix names at table of contents. I need to set font style to normal and colon after appendix name, like in the figure: (Liitteet=appendices, liite=attachment) With this code: ...
27 views

### Even and odd questions in grade table using ExSheets

I would like to create a grade table using the ExSheets package. Unfortunately the table is too long for the title page. Having tried other approaches (e.g. longtable-environment, resizebox and others)...
17 views

### vertical alignment two columns list

I am writing a highschool math textbook and i have a problem with lists. I want to split an itemize in 4 columns. The problem is that, if there math text like franction, I can't make items to be ...
21 views

### Plot 2D slice of a 3D field using pgfplots

I have data (a CSV file) from a discrete three-dimensional field (for instance, T(x,y,z), where x, y and z are discrete values) and would like to plot a slice of this field (for instance, T(x,y) for z=...
For instance $f_k$ converges to $f$ a.e.. (a.e.=almost everywhere). Which is the correct way to type this? 1) a.e.. 2) a.e. . 3) Or others? Thanks for any help.