Questions tagged [source]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
24 views

Why latexdiff-vc cannot reach git repository?

I cannot make latexdiff-vc command works under Windows 11. Let's say that I have file called Evaluation.tex under Git source control. I call the function from the directory where the file is: ...
  • 121
0 votes
0 answers
105 views

Unable to view source code in texstudio latex

I am using Texstudio 4.2.2. I write my source code and compile it successfully and view it many times as PDF. After a few days, I got my paper revision. When I open the text studio my source code only ...
  • 1
1 vote
1 answer
2k views

MikTeX sources and LaTeX language

Am I right that MikTeX sources in C++ contain the code that opens .tex file (when I run latex.exe myfile.tex), reads it, parses commands, performs them if they are correct and logs error messages ...
  • 515
1 vote
1 answer
264 views

How can I build pdflatex from source? Is Xaw needed?

I am compiling latex on linuxppc64le (RHEL 8.3) with ../configure --prefix=$HOME/contrib/latex and I get the build failure checking for Xaw headers... no configure: error: Sorry, you will need at ...
  • 31
1 vote
2 answers
175 views

List of sources or list of figures with small source

hope you're doing fine. I've seen all the subjects about my question and tried some still didn't work out as I wanted. Here's what I'm trying to acheive : Right now I only have a list of figure with ...
0 votes
2 answers
543 views

Downloading source from arxiv only gives one figure. How to obtain the entire TeX source?

I would like to download the TeX source code of this paper (https://arxiv.org/format/1701.07035v2) from arXiv. But clicking "Download source" only gives me one figure in the paper. Does ...
2 votes
1 answer
103 views

Using animate package for gif that is not in root directory

I have converted the gif into a series of pdf files and now I want to use the animate package to embed pdf 'images', called exp_%d.pdf, into my LaTeX pdf. However, the source of the pdf files is ...
  • 21
0 votes
1 answer
125 views

When a string may be assigned to an array?

In section 51 of tex.web there is this: name_of_file ← pool_name; { we needn’t set name length } where name_of_file is (sectoin 26): name_of_file : packed array [1 .. file name size ] of char; and ...
5 votes
2 answers
125 views

Why are spaces needed in the end of string array?

In section 11 of tex.web is this: @!pool_name='TeXformats:TEX.POOL '; {string of length |file_name_size|; tells where the string pool appears} and in section 519 is this: for ...
0 votes
0 answers
17 views

On handling long source names [duplicate]

I am using apalike bibliography style and natbib for citations. When citing "Board of Governors of the Federal Reserve" I faced the issue that the full source wasn't cited but only "Bord of Governors ...
  • 25
2 votes
1 answer
116 views

How can I have an additional "source'' caption in a table redefined with `renewenvironment`?

I had tables working well with a regular caption above and source information below each of them: After implementing a solution given in https://tex.stackexchange.com/a/485538/91816, the captions ...
2 votes
1 answer
1k views

incorporate R code into latex paragraph

I have a large R script I am trying to source in a LaTex document and then reference output from specific dataframes created in the source code in text in a LaTex paragraph. When I compile the PDF ...
  • 165
0 votes
0 answers
293 views

Including reference URL in bibliography using BibDesk

I'm including several articles I found on f.e. ScienceDirect into BibDesk so I can reference them in my LaTeX file. (I'm using apacite in my LaTeX file but I don't think that matters right now). I'm ...
4 votes
2 answers
2k views

How to remove minted indentation level with correct latex indentation?

When writing with minted code snippets I dislike to remove indentation in latex source, so correct results are generated. Is there a way to substract latex indentation-level from minted indentation? I ...
  • 3,055
0 votes
2 answers
2k views

How to attach AND HIDE a file in a PDF using Latex?

Embedding a file is fairly easy using LaTeX (see, for example: Embed link to an embedded file). Hiding an embedded file is also possible and fairly easy to do outside LaTeX (see, for example: https://...
0 votes
1 answer
1k views

List of figures with figure source

So basically I need a list of figures where the source is also shown like this: I am using Koma-Scripts report class and my figures look like this: \begin{figure}[H] \begin{center} \...
  • 109
0 votes
0 answers
126 views

What is an appropriate way to insert structured data from an on-line source into a Tex/LaTeX document? From within, or externally?

Let's say there is a structured list of items on some on-line source. For example, the website https://nothing.better.to.do-a.shame might contain the following data: A blueberry <tag>...
  • 1,723
3 votes
1 answer
105 views

Updating copyright note in a batch of latex files?

Appologising in advance for profound ignorance here is my problem. My 86 year old Dad has created a beautiful, free academic website, www.earlymoderntexts.com. He created all the text files in Latex,...
3 votes
2 answers
794 views

lstlisting - giving source - smaller font, alongside caption, preferably above caption

I would like to separate description of listing (\caption{}) from source of listing. What I search for is like \footnotesize in presenting pictures (\begin{figure}). I was searching for this at latex ...
1 vote
0 answers
272 views

Synctex doesn't work for some subfiles [closed]

I'm writing my Master's thesis with TeXMaker 4.5 (MiKTeX 2.9) on Windows 10. Furthermore, the structure is orgnizes in sub-directories and separate files. I use the following command to compile my ...
2 votes
1 answer
132 views

Which TeX editors can jump to \import source directly?

Which of the TeX editors have the possibility to make jump by clicking to source file some_source_tex_file.tex in \import{some-dir}{some_source_tex_file.tex} in view for editing? Bigest thank you for ...
2 votes
0 answers
2k views

No creation rule for font ""

I am receiving the following error message: Running miktex-makemf.exe... miktex-makemf: The source file could not be found. Running hbf2gf.exe... hbf2gf (CJK ver. 4.8.0) `' can't be a ...
4 votes
1 answer
350 views

How use embedfile package with pdflatex to embed entire tree of source files?

What commands with the embedfile package will embed an entire tree of source files into the output from pdfLateX? The sort of tree, in very simplified form, that I have is as follows, where (d) ...
  • 7,350
1 vote
2 answers
74 views

How to expand the \caption-command to pre-insert the affiliated source of figure/table?

In scientific works it is quite common to specify the source for every statement. This is also necessary for tables or images of course. Usually I'm always using the \caption-command for adding some ...
  • 3,578
6 votes
1 answer
1k views

What is the logic behind \@afterindentfalse when \@tempskipa <\z@?

I am just looking to confirm what I suspect. Was this programmed to make any negative : have no vertical effect because nobody in their right mind would want overlapping text? Therefore disable ...
0 votes
1 answer
87 views

How to use a timing on a picture's source on beamer

I have a slide with two columns: an itemize with pauses, and an overprint with pictures. They were perfect until I decided to insert the picture's source on the bottom. So now I have the source since ...
35 votes
5 answers
8k views

Best practices for source file line lengths?

Are there any best practices for how long to make your lines in your source file? I'm also interested if there are best practices for it if there aren't any LaTeX-specific best practices. I ...
  • 461
5 votes
2 answers
2k views

Add a centered source to figure captions

Just a question. I used this code to create a source under my figures: \documentclass{article} \newcommand*{\captionsource}[2]{% \caption[{#1}]{% #1% \\\hspace{\linewidth}% \textbf{...
  • 51
2 votes
1 answer
71 views

What is the correct way to refer to the code that one enters in an editor?

I am a question about terminology. When I think about source code I usually think about the code that a program is compiled from. But I also often call the code in the .tex file source code. Is this ...
  • 2,767
2 votes
1 answer
290 views

What type of plain text should the latex code be?

I know that one writes the LaTeX code in a text editor as plain text. One then saves this file as a .tex file ad compiles using latex (or pdflatex, or ...). From what I understand, there are ...
  • 2,767
2 votes
0 answers
2k views

Custom lstlisting highlighting for symbols

I using the Listings package to pretty print CUDA source code listings. CUDA is a dialect of C++, so I define my style as follows: \documentclass{article} \usepackage{listings} \usepackage{...
  • 551
2 votes
1 answer
365 views

Hanging indentation of source code within sentence a la Vim-LaTeX-Box

I've recently been playing with the LaTex-Box plugin for Vim and noticed the layout of the source code on their Github page: What interests me is the 2-space hanging indent within each sentence. That ...
  • 41
4 votes
0 answers
161 views

Source code explanation in LaTeX [duplicate]

I was just wondering if it is possible to create source code explanations like the image below using LaTeX (listings or minted it doesn't matter). I'm Sorry I'm kind of new to LaTeX. Thanks in ...
17 votes
1 answer
7k views

Embedding images in tex file as base64 strings?

A commonly asked question on this site is how to embed images directly in a .tex source file, without the need for the image to exist in a separate file. Examples of such questions (often marked as ...
  • 835
1 vote
1 answer
996 views

'Errors' using the minted VHDL environment

I recently started university, and was annoyed to find out, we had to do our reports and assignments in LaTeX... until I learned how to use it! I went from hating it to loving it in one day. :) But ...
0 votes
1 answer
1k views

Latex Listing Source shift right side?

I am using Latex listings package to add the source code in my document, but the problem is on the left side some character is missing as showing in the picture. \usepackage{listings} Source Code ...
  • 400
6 votes
2 answers
28k views

miktex-makemf: The source file could not be found

I m trying to compile file using TeXworks. I use fithesis class because its pre-set class by my university for creating documents. \documentclass[12pt,oneside,final]{fithesis} \usepackage[latin2] {...
  • 61
16 votes
5 answers
28k views

Possible to Convert Math in Picture into LaTeX? How?

Is it feasible to convert math in a picture, say written by hand, into LaTeX? For example, I'd deem it faster to write down (de novo) a 10 x 10 matrix with long, complex entries, rather than typing ...
user avatar
5 votes
1 answer
232 views

One source text, two outputs [duplicate]

I have very long source text. I want to create two outputs: All text Only small pieces of this source text, selected by condition command MWE (precisely: not working) \documentclass{article} \...
  • 361
3 votes
1 answer
90 views

The actual source of pst-plot?

In the comment to answer to his question Labels with \psplot Svend Tveskæg writes: The newest version of pst-plot can be found at http://texnik.dante.de/tex/generic/pst-plot/pst-plot.tex. Is it the ...
2 votes
1 answer
7k views

Source at the end of table and centering cells

How could I add before title the source of the table? Also, in the first row how could I center between 2010 and provisional the other dates? \begin{table}[ht] \centering % used for centering table \...
  • 3,212
6 votes
1 answer
1k views

What is the right way to indent your source code?

This is probably a really basic question: When I write code, I want to achieve a logical and readable structure of the lines, where I can see which brace closes which brace. \begin{equation} \begin{...
  • 1,143
6 votes
1 answer
236 views

How to create two PDFoutput from the same source

I have a very long source file. I would like to prepare from this source two PDF files: PDF contains all of the source file PDF containing only a few, marked earlier parts of the source file. How I ...
  • 61
18 votes
1 answer
2k views

Where do you find TikZ/PGF source code?

I'd like to check the the source code used to implement the standard rectangle shape in PGF/TikZ. I was thinking about searching for something like \pgfdeclareshape{rectangle} inside the PGF files but ...
  • 22.8k
3 votes
1 answer
69 views

Change automatically generated Text in sources with natbib

In my source directory of the thesis I am currently working on, I have got a masters's thesis as one source. As type for this source I chose Master thesis and now Latex always writes "master's thesis" ...
  • 277
7 votes
1 answer
3k views

Why \nointerlineskip if background of Beamer-color frametitle is empty?

I'm trying to read the source of Beamer default outer theme (the file beamerouterthemedefault.sty). In line 144 there is this code: \defbeamertemplate*{frametitle}{default}[1][left] { \...
  • 13.3k
3 votes
0 answers
206 views

Is there an easy way to comment out a whole block? [duplicate]

Possible Duplicate: Multi-line (block) comments in LaTeX Is it possible to comment out a whole block in LaTeX source? For example, like in Java: // This is an in-line comment. /* This is ...
  • 1,995
2 votes
2 answers
1k views

How to get forward-search working in Kile with nested source files

I have a huge set of .tex files which compile into a single document. I have recently switched to Kile on Unbuntu (love it so far). However I see that forward search from source files other than the ...
  • 343
6 votes
1 answer
230 views

Extracting source from pgfplotstable

I like using pgfplotstable because I can feed data in tables directly to it and generate a latex table. However, not all of my coauthors have the right packages to compile pgf-enabled latex. Since ...
  • 16k
20 votes
2 answers
2k views

Get current source line number

How can I get the current .tex source line number? I want to use it to generate useful error messages in a package I am writing. There are some errors that can only be detected at the end of the ...
  • 2,207