Questions tagged [source]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
15 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 ...
0
votes
1answer
99 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
2answers
88 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
0answers
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 ...
2
votes
1answer
27 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
1answer
734 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 ...
0
votes
0answers
132 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 ...
1
vote
1answer
474 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 ...
0
votes
2answers
1k 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
1answer
161 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} \...
0
votes
0answers
76 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>...
3
votes
1answer
98 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
2answers
475 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
0answers
190 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
1answer
90 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 ...
1
vote
0answers
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
1answer
167 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) ...
1
vote
2answers
55 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 ...
6
votes
1answer
603 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
1answer
50 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 ...
32
votes
4answers
5k 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 ...
5
votes
2answers
1k 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{...
2
votes
1answer
70 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
votes
1answer
238 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
votes
0answers
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{...
2
votes
1answer
318 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 ...
4
votes
0answers
93 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 ...
14
votes
1answer
4k 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 ...
1
vote
1answer
654 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
1answer
936 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 ...
6
votes
2answers
25k 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] {...
16
votes
4answers
22k 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 ...
5
votes
1answer
190 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} \...
3
votes
1answer
80 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 ...
1
vote
1answer
3k 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 \...
5
votes
1answer
878 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{...
6
votes
1answer
210 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 ...
16
votes
1answer
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 ...
3
votes
1answer
66 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" ...
5
votes
1answer
2k 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] { \...
3
votes
0answers
159 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 ...
2
votes
2answers
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 ...
6
votes
1answer
174 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 ...
17
votes
1answer
1k 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
votes
1answer
209 views

Recover TeX source from automatically generated LaTeX files

Maybe the question can not be exactly understood from the title. So, to automate things a bit, instead of rewriting everything when adding different pictures and tables, code was made to add ...
11
votes
1answer
863 views

XeTeX source code

There has already been a question on where to find the source code for pdfTeX. The answer is that it can be found on CTAN, in the systems directory. Unfortunately, the source code for XeTeX is not ...
1
vote
0answers
86 views

How can i write the code of Pascal's triangle? [duplicate]

Possible Duplicate: Pascal's triangle in tikz How can i write the code of Pascal's triangle? Pleae help me.Thank you.
2
votes
1answer
1k views

How to build xelatex from xetex source

I'm trying like to build xelatex from xetex source on Linux. Source link: http://scripts.sil.org/svn-view/xetex/TAGS/xetex-0.996.tar.gz With the source I was able to build xetex executable. ...
9
votes
5answers
5k views

Can we convert DVI or PostScript into TeX?

Basically that is the question - if we have a DVI file can we get on the base on it the original TeX file?
7
votes
1answer
326 views

How would I recursively add the document source code to an appendix?

For kicks, I would like to include the source code as an appendix. It's rather superfluous, yes, but it's puzzling. I commonly have documents that are structured thusly: main.tex includes: part_1....