Questions tagged [showexpl]

showexpl is a package for including example LaTeX code together with its output

43 questions
14
votes
3 answers

How to align the top lines of frames?

I want to align the top lines of the left and right frames. How to do…
7
votes
1 answer

Can you make the "graphic" option of LTXinputExample able to render all pages of a multi-page PDF file?

I have a source code named source.tex which produces a PDF file consisting of more than one page. The source code will be displayed by LTXinputExample as a formatted text and the corresponding output is provided by the existing PDF file via graphic…
6
votes
2 answers

How to control the left margin for the formatted text produced by LTXexample?

I want to use both LaTeX code snippet using LTXexample and C# code snippet using lstlisting in my book. If you see my screenshot below, lstlisting behaves well but LTXexample does not. How to prevent LTXexample from expanding its left frame rule…
Display Name
  • 46,933
5
votes
2 answers

How to remove the unbalanced white space below the top rule of the formatted output?

How to remove the unbalanced white space below the top rule of the formatted output?…
4
votes
1 answer

How to change the \fboxsep and \fboxrule of LTXexample's rframe?

The formatted output is enclosed by rframe. But for a certain case, the grid label of pspicture goes beyond the frame. The grid label of pspicture might be rendered outside TeX engine so TeX does not know the exact dimension for it. Shortly…
4
votes
2 answers

What is explpreset actually for?

showexpl package is intended to show (La)TeX, TikZ, PSTricks codes and their coressponding rendered outputs at the same time (either horizontally or vertically). Note that it cannot be used to show C# or C++ or Mathematica or others and their…
Display Name
  • 46,933
3
votes
3 answers

Is it possible to separate the input and output of LTXexample such that I can put each in a table cell?

My objective is to create a long tabular list of PSTricks inputs and their corresponding outputs side by side. The table consists of 3 columns, i.e., Number column, Input column, & Output column. The Number column contains hyperlinks to the source…
Display Name
  • 46,933
2
votes
1 answer

Without using minipage, can we resize both input and output boxes of LTXexample?

\documentclass[dvipsnames]{article} \usepackage{xcolor} \usepackage[margin=50mm]{geometry} \usepackage{showexpl} \usepackage{etoolbox} \makeatletter \patchcmd{\SX@codeInput}{xleftmargin=0pt,xrightmargin=0pt}{} {\typeout{***Successfully patched…
Display Name
  • 46,933
2
votes
1 answer

How to execute \LTXexample repeatitively with a looping macro such that its counter value gets rendered in both input/output parts?

The following code is the simplified version of my real scenario. It might look trivial. I forgot to say that the following code is the Minimal Not Working Example…
Display Name
  • 46,933
1
vote
1 answer

rframe is not working in showexpl

the option rframe=empty has not effect in showexpl. Here is a WME \documentclass{article} \usepackage{showexpl} \begin{document} Here is: \begin{LTXexample}[rframe=empty] \begin{center} Hello…
ernesto
  • 163
1
vote
1 answer

How to resize a graphic attached to LTXinputExample?

I want to attach a PDF output of a source code using graphic option of LTXinputExample. Shortly speaking, how to resize the attached…
0
votes
1 answer

How to align the top frame edges of source and formatted text with the same horizontal line?

The following code will be referred multiple times in my questions later. Patching is needed to make the frames of both source code and formatted text inside the text width.…
Display Name
  • 46,933