texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: Enable more LaTeX tests, put issues in LaTeX.pm T


From: Patrice Dumas
Subject: branch master updated: Enable more LaTeX tests, put issues in LaTeX.pm TODO list
Date: Thu, 25 Aug 2022 07:56:28 -0400

This is an automated email from the git hooks/post-receive script.

pertusus pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new d61e0a0268 Enable more LaTeX tests, put issues in LaTeX.pm TODO list
d61e0a0268 is described below

commit d61e0a0268390eb7eb2931dadce18147d10b6785
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Thu Aug 25 13:55:57 2022 +0200

    Enable more LaTeX tests, put issues in LaTeX.pm TODO list
---
 tp/Texinfo/Convert/LaTeX.pm                        |  8 +-
 tp/t/20preformatted.t                              |  3 +
 tp/t/converters_tests.t                            | 54 ++-----------
 tp/t/results/converters_tests/complex_nestings.pl  | 91 ++++++++++++++++++++++
 .../index_entry_in_preformatted.pl                 | 16 ++++
 .../converters_tests/normal_font_in_monospace.pl   |  9 +++
 tp/t/results/converters_tests/sp_in_example.pl     | 22 ++++++
 .../table_in_display_in_example.pl                 | 11 +++
 .../table_in_example_in_display.pl                 | 11 +++
 tp/t/results/preformatted/caption_in_example.pl    | 18 +++++
 .../comment_example_and_blank_lines.pl             | 28 +++++++
 tp/t/results/preformatted/comments_in_example.pl   | 19 +++++
 tp/t/results/preformatted/def_in_example.pl        | 18 +++++
 tp/t/results/preformatted/empty_line.pl            |  9 +++
 .../preformatted/insertcopying_in_example.pl       |  7 ++
 .../preformatted/nested_example_and_comment.pl     | 35 +++++++++
 tp/t/results/preformatted/nested_formats.pl        | 16 ++++
 tp/t/results/preformatted/page_in_example.pl       |  9 +++
 tp/t/results/preformatted/quote_dash_in_display.pl |  9 +++
 tp/t/results/preformatted/quote_dash_in_example.pl |  9 +++
 .../preformatted/text_on_display_command_line.pl   | 14 ++++
 .../preformatted/text_on_example_command_line.pl   | 14 ++++
 tp/t/results/preformatted/titlefont_in_example.pl  |  8 ++
 23 files changed, 390 insertions(+), 48 deletions(-)

diff --git a/tp/Texinfo/Convert/LaTeX.pm b/tp/Texinfo/Convert/LaTeX.pm
index 49bacd78a7..db983a9ab9 100644
--- a/tp/Texinfo/Convert/LaTeX.pm
+++ b/tp/Texinfo/Convert/LaTeX.pm
@@ -56,6 +56,9 @@
 # (example in customization_api.texi (Texinfo Tree Conversion Functions)
 # convert_tree_new_formatting_context)
 #
+# An empty line in @example is not kept as is.  Tested in t/20preformatted.t
+# empty_line.
+#
 #
 # RELEVANT BUT NOT DECISIVE
 #
@@ -159,7 +162,10 @@
 # https://lists.gnu.org/archive/html/bug-texinfo/2006-06/msg00030.html
 #
 # @indentedblock and @smallindentedblock should not have a wider right
-# margin.
+# margin.  The wider margin is because they are in quote environment.
+#
+# @def* body should not have a wider right margin.  The wider margin
+# is because they are in quote environment.
 #
 # it seems that \indent only works with \setlength{\parindent}{0pt}
 # which makes it quite different from Texinfo @indent.  Implement
diff --git a/tp/t/20preformatted.t b/tp/t/20preformatted.t
index d76e50e828..b9bf777954 100644
--- a/tp/t/20preformatted.t
+++ b/tp/t/20preformatted.t
@@ -147,6 +147,8 @@ in -- example/format
 @end format
 @end example
 '],
+# In LaTeX there is no end of line before the paragraph in the
+# 'comment, no blank after' case formatting.  Different from TeX output.
 ['comment_example_and_blank_lines',
 'Para.
 
@@ -201,6 +203,7 @@ foreach my $test (@test_cases) {
   push @{$test->[2]->{'test_formats'}}, 'html_text';
   push @{$test->[2]->{'test_formats'}}, 'docbook';
   push @{$test->[2]->{'test_formats'}}, 'xml';
+  push @{$test->[2]->{'test_formats'}}, 'latex';
 }
 
 run_all('preformatted', [@test_cases, @test_invalid]);
diff --git a/tp/t/converters_tests.t b/tp/t/converters_tests.t
index a3efac85dd..b683991547 100644
--- a/tp/t/converters_tests.t
+++ b/tp/t/converters_tests.t
@@ -481,7 +481,9 @@ Line
 @end table
 @end display
 @end example
-'],['table_in_example_in_display',
+'],
+# in LaTeX TODO. The second display should be more indented
+['table_in_example_in_display',
 '@display
 @example
 @table @asis
@@ -491,6 +493,8 @@ Line
 @end example
 @end display
 '],
+# In LaTeX TODO. This test shows that the @def* have a wider right margin
+# which increases with nesting, because they are in a quote environment.
 ['complex_nestings',
 '@node Top
 @top top
@@ -1136,50 +1140,6 @@ my %docbooc_doc_tests = (
  'line_breaks' => 1,
 );
 
-# this is temporary, all the files in @test_cases should go
-# through the LaTeX converter
-my %latex_tests = (
-  'accent_with_text' => 1,
-  'empty_accent' => 1,
-  'some_at_commands_in_ref_nodes' => 1,
-  'refs_formatting' => 1,
-  'top_in_ref' => 1,
-  'ref_error_formatting' => 1,
-  'ref_in_sectioning' => 1,
-  'unknown_value' => 1,
-  'test_sp' => 1,
-# need final implementation of @example
-# 'sp_in_example' => 1,
-  'line_breaks' => 1,
-  'test_deftypefnnewline' => 1,
-  'raw_block_commands' => 1,
-  'raw_block_commands_expand_tex' => 1,
-  'inline' => 1,
-  'inline_expand_tex' => 1,
-  'inlinefmtifelse' => 1,
-  'inlineifsetifclear' => 1,
-# need final implementation of @example
-# table_in_display_in_example
-# table_in_example_in_display
-# complex_nestings
-  'image_with_spaces' => 1,
-  'image_extension' => 1,
-  'image_formatting' => 1,
-  'enumerate_above_ten' => 1,
-  'footnote_no_number' => 1,
-  'frenchspacing_and_code'  => 1,
-  'footnote_no_number_separate' => 1,
-  'things_before_setfilename' => 1,
-  'things_before_setfilename_no_element' => 1,
-  'spaces_in_node_names' => 1,
-  'spaces_in_empty_node_names' => 1,
-# need final implementation of @example
-#  'normal_font_in_monospace' => 1,
-  'email_table_command_as_argument' => 1,
-  'at_commands_in_raw' => 1,
-  'non_empty_part' => 1,
-);
-
 my %file_latex_tests = (
   'printindex_merged_indices_code_style' => 1,
   'definition_commands' => 1,
@@ -1201,13 +1161,13 @@ foreach my $test (@test_cases) {
   } else {
     push @{$test->[2]->{'test_formats'}}, 'docbook';
   }
-  push @{$test->[2]->{'test_formats'}}, 'latex'
-    if ($latex_tests{$test->[0]});
   if ($file_latex_tests{$test->[0]}) {
     $test->[2]->{'test_input_file_name'} = $test->[0] . '.texi';
     $test->[2]->{'full_document'} = 1
         unless (exists($test->[2]->{'full_document'}));
     push @{$test->[2]->{'test_formats'}}, 'file_latex';
+  } else {
+    push @{$test->[2]->{'test_formats'}}, 'latex';
   }
   push @{$test->[2]->{'test_formats'}}, 'info'
     if ($info_tests{$test->[0]});
diff --git a/tp/t/results/converters_tests/complex_nestings.pl 
b/tp/t/results/converters_tests/complex_nestings.pl
index 97be1dfacf..c29f81d040 100644
--- a/tp/t/results/converters_tests/complex_nestings.pl
+++ b/tp/t/results/converters_tests/complex_nestings.pl
@@ -1771,4 +1771,95 @@ explanation
 </screen></chapter>
 ';
 
+
+$result_converted{'latex'}->{'complex_nestings'} = '\\label{anchor:Top}%
+\\chapter{{Chapter}}
+\\label{anchor:chap}%
+
+\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax\\ttfamily%
+deffs
+\\end{GNUTexinfopreformatted}
+
+\\noindent\\begin{tabularx}{\\linewidth}{@{}Xr}
+\\rightskip=5em plus 1 fill
+\\hangindent=2em
+\\noindent\\texttt{my def \\EmbracOn{}\\textnormal{\\textsl{args 
\\GNUTexinfocommandstyletextvar{arg} \\dots{}\\@}}\\EmbracOff{}}& [Function]
+\\end{tabularx}
+
+\\index[fn]{my def@\\texttt{my def}}%
+
+\\noindent\\begin{tabularx}{\\linewidth}{@{}Xr}
+\\rightskip=5em plus 1 fill
+\\hangindent=2em
+\\noindent\\texttt{other def \\EmbracOn{}\\textnormal{\\textsl{no 
args}}\\EmbracOff{}}& [Function]
+\\end{tabularx}
+
+\\index[fn]{other def@\\texttt{other def}}%
+\\begin{quote}
+\\unskip{\\parskip=0pt\\noindent}%
+
+\\noindent\\begin{tabularx}{\\linewidth}{@{}Xr}
+\\rightskip=5em plus 1 fill
+\\hangindent=2em
+\\noindent\\texttt{name \\EmbracOn{}\\textnormal{\\textsl{and now the 
args}}\\EmbracOff{}}& [type]
+\\end{tabularx}
+
+\\index[fn]{name@\\texttt{name}}%
+\\begin{quote}
+\\unskip{\\parskip=0pt\\noindent}%
+
+\\noindent\\begin{tabularx}{\\linewidth}{@{}Xr}
+\\rightskip=5em plus 1 fill
+\\hangindent=2em
+\\noindent\\texttt{variables 
\\EmbracOn{}\\textnormal{\\textsl{variable-name}}\\EmbracOff{}}& [Variable]
+\\end{tabularx}
+
+\\index[vr]{variables@\\texttt{variables}}%
+\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax\\ttfamily%
+
+\\end{GNUTexinfopreformatted}
+
+\\noindent\\begin{tabularx}{\\linewidth}{@{}Xr}
+\\rightskip=5em plus 1 fill
+\\hangindent=2em
+\\noindent\\texttt{variables too 
\\EmbracOn{}\\textnormal{\\textsl{other-variable}}\\EmbracOff{}}& [Variable]
+\\end{tabularx}
+
+\\index[vr]{variables too@\\texttt{variables too}}%
+\\begin{quote}
+\\unskip{\\parskip=0pt\\noindent}%
+\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax\\ttfamily%
+THis is the defvar
+
+A table within the def
+\\end{GNUTexinfopreformatted}
+\\begin{description}
+\\item[{\\parbox[b]{\\linewidth}{%
+item}}]
+\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax\\ttfamily%
+text
+
+more text
+\\end{GNUTexinfopreformatted}
+\\item[{\\parbox[b]{\\linewidth}{%
+second item}}]
+\\end{description}
+\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax\\ttfamily%
+
+explanation
+\\end{GNUTexinfopreformatted}
+\\end{quote}
+\\end{quote}
+\\end{quote}
+\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax\\ttfamily%
+
+\\end{GNUTexinfopreformatted}
+';
+
 1;
diff --git a/tp/t/results/converters_tests/index_entry_in_preformatted.pl 
b/tp/t/results/converters_tests/index_entry_in_preformatted.pl
index 29bf97101d..5b1593c0ec 100644
--- a/tp/t/results/converters_tests/index_entry_in_preformatted.pl
+++ b/tp/t/results/converters_tests/index_entry_in_preformatted.pl
@@ -640,4 +640,20 @@ 
$result_converted{'docbook'}->{'index_entry_in_preformatted'} = '<chapter label=
 <indexterm role="cp"><primary>last</primary></indexterm></screen></chapter>
 ';
 
+
+$result_converted{'latex'}->{'index_entry_in_preformatted'} = 
'\\label{anchor:Top}%
+\\chapter{{Chapter}}
+\\label{anchor:chap}%
+
+\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax\\ttfamily%
+\\index[cp]{first}%
+text
+
+\\index[cp]{other}%
+text2
+\\index[cp]{last}%
+\\end{GNUTexinfopreformatted}
+';
+
 1;
diff --git a/tp/t/results/converters_tests/normal_font_in_monospace.pl 
b/tp/t/results/converters_tests/normal_font_in_monospace.pl
index 3cd366a79c..691e18564c 100644
--- a/tp/t/results/converters_tests/normal_font_in_monospace.pl
+++ b/tp/t/results/converters_tests/normal_font_in_monospace.pl
@@ -288,4 +288,13 @@ $result_converted{'docbook'}->{'normal_font_in_monospace'} 
= '<screen>in example
 <para><command>in command---c in r&#8212;r <filename>in 
file---</filename></command>.
 </para>';
 
+
+$result_converted{'latex'}->{'normal_font_in_monospace'} = 
'\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax\\ttfamily%
+in example \\textnormal{in r---now \\texttt{in co{-}{-}{-}de}}
+\\end{GNUTexinfopreformatted}
+
+\\texttt{in command{-}{-}{-}c \\textnormal{in r---r \\texttt{in 
file{-}{-}{-}}}}.
+';
+
 1;
diff --git a/tp/t/results/converters_tests/sp_in_example.pl 
b/tp/t/results/converters_tests/sp_in_example.pl
index 7ac3b8eb09..fafbade282 100644
--- a/tp/t/results/converters_tests/sp_in_example.pl
+++ b/tp/t/results/converters_tests/sp_in_example.pl
@@ -461,4 +461,26 @@ B
 sp after para
 </screen>';
 
+
+$result_converted{'latex'}->{'sp_in_example'} = 
'\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax\\ttfamily%
+Para
+\\vskip 1\\baselineskip %
+other para
+Now lone @sp:
+
+\\vskip 1\\baselineskip %
+
+\\vskip 2\\baselineskip %
+Para after sp
+
+A
+\\vskip 2\\baselineskip %
+B
+
+sp after para
+\\vskip 1\\baselineskip %
+\\end{GNUTexinfopreformatted}
+';
+
 1;
diff --git a/tp/t/results/converters_tests/table_in_display_in_example.pl 
b/tp/t/results/converters_tests/table_in_display_in_example.pl
index 4d32a665fe..3e2502a816 100644
--- a/tp/t/results/converters_tests/table_in_display_in_example.pl
+++ b/tp/t/results/converters_tests/table_in_display_in_example.pl
@@ -334,4 +334,15 @@ 
$result_converted{'docbook'}->{'table_in_display_in_example'} = '<variablelist><
 </term><listitem><literallayout>Line
 </literallayout></listitem></varlistentry></variablelist>';
 
+
+$result_converted{'latex'}->{'table_in_display_in_example'} = 
'\\begin{description}
+\\item[{\\parbox[b]{\\linewidth}{%
+item}}]
+\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax%
+Line
+\\end{GNUTexinfopreformatted}
+\\end{description}
+';
+
 1;
diff --git a/tp/t/results/converters_tests/table_in_example_in_display.pl 
b/tp/t/results/converters_tests/table_in_example_in_display.pl
index 2e908741d1..1760dfe151 100644
--- a/tp/t/results/converters_tests/table_in_example_in_display.pl
+++ b/tp/t/results/converters_tests/table_in_example_in_display.pl
@@ -334,4 +334,15 @@ 
$result_converted{'docbook'}->{'table_in_example_in_display'} = '<variablelist><
 </term><listitem><screen>Line
 </screen></listitem></varlistentry></variablelist>';
 
+
+$result_converted{'latex'}->{'table_in_example_in_display'} = 
'\\begin{description}
+\\item[{\\parbox[b]{\\linewidth}{%
+item}}]
+\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax\\ttfamily%
+Line
+\\end{GNUTexinfopreformatted}
+\\end{description}
+';
+
 1;
diff --git a/tp/t/results/preformatted/caption_in_example.pl 
b/tp/t/results/preformatted/caption_in_example.pl
index 580388e0a8..3b0d50238f 100644
--- a/tp/t/results/preformatted/caption_in_example.pl
+++ b/tp/t/results/preformatted/caption_in_example.pl
@@ -351,4 +351,22 @@ After caption
 </float>
 ';
 
+
+$result_converted{'latex'}->{'caption_in_example'} = 
'\\begin{TexinfoFloatfloat}
+
+\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax\\ttfamily%
+in example 
+
+\\end{GNUTexinfopreformatted}
+\\caption{caption}
+\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax\\ttfamily%
+
+
+After caption
+\\end{GNUTexinfopreformatted}
+\\end{TexinfoFloatfloat}
+';
+
 1;
diff --git a/tp/t/results/preformatted/comment_example_and_blank_lines.pl 
b/tp/t/results/preformatted/comment_example_and_blank_lines.pl
index e72f234469..2e11285831 100644
--- a/tp/t/results/preformatted/comment_example_and_blank_lines.pl
+++ b/tp/t/results/preformatted/comment_example_and_blank_lines.pl
@@ -588,4 +588,32 @@ 
$result_converted{'xml'}->{'comment_example_and_blank_lines'} = '<para>Para.
 <para>Para.
 </para>';
 
+
+$result_converted{'latex'}->{'comment_example_and_blank_lines'} = 'Para.
+
+\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax\\ttfamily%
+comment,\\ blank after \\end{GNUTexinfopreformatted}
+
+Para.
+
+\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax\\ttfamily%
+comment,\\ no blank after \\end{GNUTexinfopreformatted}
+Para.
+
+\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax\\ttfamily%
+no comment,\\ blank after
+\\end{GNUTexinfopreformatted}
+
+Para.
+
+\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax\\ttfamily%
+no comment,\\ no blank after
+\\end{GNUTexinfopreformatted}
+Para.
+';
+
 1;
diff --git a/tp/t/results/preformatted/comments_in_example.pl 
b/tp/t/results/preformatted/comments_in_example.pl
index a36603e7a3..e1aca1734d 100644
--- a/tp/t/results/preformatted/comments_in_example.pl
+++ b/tp/t/results/preformatted/comments_in_example.pl
@@ -482,4 +482,23 @@ second line
 </pre></example>
 ';
 
+
+$result_converted{'latex'}->{'comments_in_example'} = 'Example with comments 2 
lines
+\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax\\ttfamily%
+line second line \\end{GNUTexinfopreformatted}
+
+Example with comments 1 line
+\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax\\ttfamily%
+line \\end{GNUTexinfopreformatted}
+
+Example with newline after comment
+\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax\\ttfamily%
+line 
+second line
+\\end{GNUTexinfopreformatted}
+';
+
 1;
diff --git a/tp/t/results/preformatted/def_in_example.pl 
b/tp/t/results/preformatted/def_in_example.pl
index 4974f004ca..60efd3d00a 100644
--- a/tp/t/results/preformatted/def_in_example.pl
+++ b/tp/t/results/preformatted/def_in_example.pl
@@ -316,4 +316,22 @@ $result_converted{'xml'}->{'def_in_example'} = '<example 
endspaces=" ">
 </example>
 ';
 
+
+$result_converted{'latex'}->{'def_in_example'} = '
+\\noindent\\begin{tabularx}{\\linewidth}{@{}Xr}
+\\rightskip=5em plus 1 fill
+\\hangindent=2em
+\\noindent\\texttt{name \\EmbracOn{}\\textnormal{\\textsl{arg}}\\EmbracOff{}}& 
[Function]
+\\end{tabularx}
+
+\\index[fn]{name@\\texttt{name}}%
+\\begin{quote}
+\\unskip{\\parskip=0pt\\noindent}%
+\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax\\ttfamily%
+in defun
+\\end{GNUTexinfopreformatted}
+\\end{quote}
+';
+
 1;
diff --git a/tp/t/results/preformatted/empty_line.pl 
b/tp/t/results/preformatted/empty_line.pl
index 33c99a489e..9f6019d245 100644
--- a/tp/t/results/preformatted/empty_line.pl
+++ b/tp/t/results/preformatted/empty_line.pl
@@ -151,4 +151,13 @@ after empty line
 </pre></example>
 ';
 
+
+$result_converted{'latex'}->{'empty_line'} = '\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax\\ttfamily%
+example
+
+after empty line
+\\end{GNUTexinfopreformatted}
+';
+
 1;
diff --git a/tp/t/results/preformatted/insertcopying_in_example.pl 
b/tp/t/results/preformatted/insertcopying_in_example.pl
index 6c0074bdb9..8c0da9ab85 100644
--- a/tp/t/results/preformatted/insertcopying_in_example.pl
+++ b/tp/t/results/preformatted/insertcopying_in_example.pl
@@ -147,4 +147,11 @@ $result_converted{'xml'}->{'insertcopying_in_example'} = 
'<example endspaces=" "
 </pre></example>
 ';
 
+
+$result_converted{'latex'}->{'insertcopying_in_example'} = 
'\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax\\ttfamily%
+text
+\\end{GNUTexinfopreformatted}
+';
+
 1;
diff --git a/tp/t/results/preformatted/nested_example_and_comment.pl 
b/tp/t/results/preformatted/nested_example_and_comment.pl
index a1e545f453..e24e9c6e95 100644
--- a/tp/t/results/preformatted/nested_example_and_comment.pl
+++ b/tp/t/results/preformatted/nested_example_and_comment.pl
@@ -736,4 +736,39 @@ $result_converted{'xml'}->{'nested_example_and_comment'} = 
'<example endspaces="
 </pre></example>
 ';
 
+
+$result_converted{'latex'}->{'nested_example_and_comment'} = 
'\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax\\ttfamily%
+First line 0 \\end{GNUTexinfopreformatted}
+\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax\\ttfamily%
+Nested example
+\\end{GNUTexinfopreformatted}
+\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax\\ttfamily%
+In first one
+\\end{GNUTexinfopreformatted}
+
+\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax\\ttfamily%
+First line 1 \\end{GNUTexinfopreformatted}
+\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax\\ttfamily%
+Nested example \\end{GNUTexinfopreformatted}
+\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax\\ttfamily%
+In first one
+\\end{GNUTexinfopreformatted}
+
+\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax\\ttfamily%
+First line 2 \\end{GNUTexinfopreformatted}
+\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax\\ttfamily%
+Nested example \\end{GNUTexinfopreformatted}
+\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax\\ttfamily%
+In first one \\end{GNUTexinfopreformatted}
+';
+
 1;
diff --git a/tp/t/results/preformatted/nested_formats.pl 
b/tp/t/results/preformatted/nested_formats.pl
index b9bb792d3a..f9297f236e 100644
--- a/tp/t/results/preformatted/nested_formats.pl
+++ b/tp/t/results/preformatted/nested_formats.pl
@@ -410,4 +410,20 @@ in -- example/format
 </example>
 ';
 
+
+$result_converted{'latex'}->{'nested_formats'} = 
'\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax\\ttfamily%
+
+in {-}{-} format/example
+
+\\end{GNUTexinfopreformatted}
+
+\\begin{GNUTexinfopreformatted}
+\\leftskip=0em\\relax%
+
+in -- example/format
+
+\\end{GNUTexinfopreformatted}
+';
+
 1;
diff --git a/tp/t/results/preformatted/page_in_example.pl 
b/tp/t/results/preformatted/page_in_example.pl
index 1a97acabca..68159a2899 100644
--- a/tp/t/results/preformatted/page_in_example.pl
+++ b/tp/t/results/preformatted/page_in_example.pl
@@ -143,4 +143,13 @@ $result_converted{'xml'}->{'page_in_example'} = '<example 
endspaces=" ">
 </pre></example>
 ';
 
+
+$result_converted{'latex'}->{'page_in_example'} = '\\newpage{}%
+\\phantom{blabla}%
+\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax\\ttfamily%
+text
+\\end{GNUTexinfopreformatted}
+';
+
 1;
diff --git a/tp/t/results/preformatted/quote_dash_in_display.pl 
b/tp/t/results/preformatted/quote_dash_in_display.pl
index 2d618ba5cb..4863a5a24e 100644
--- a/tp/t/results/preformatted/quote_dash_in_display.pl
+++ b/tp/t/results/preformatted/quote_dash_in_display.pl
@@ -151,4 +151,13 @@ $result_converted{'xml'}->{'quote_dash_in_display'} = '
 </pre></display>
 ';
 
+
+$result_converted{'latex'}->{'quote_dash_in_display'} = '
+\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax%
+and now -- yes---now and ``so\'\'.
+
+\\end{GNUTexinfopreformatted}
+';
+
 1;
diff --git a/tp/t/results/preformatted/quote_dash_in_example.pl 
b/tp/t/results/preformatted/quote_dash_in_example.pl
index f2c4aaefdd..8595b05ec3 100644
--- a/tp/t/results/preformatted/quote_dash_in_example.pl
+++ b/tp/t/results/preformatted/quote_dash_in_example.pl
@@ -151,4 +151,13 @@ $result_converted{'xml'}->{'quote_dash_in_example'} = '
 </pre></example>
 ';
 
+
+$result_converted{'latex'}->{'quote_dash_in_example'} = '
+\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax\\ttfamily%
+and now {-}{-} yes{-}{-}{-}now and {`}{`}so{\'}{\'}.
+
+\\end{GNUTexinfopreformatted}
+';
+
 1;
diff --git a/tp/t/results/preformatted/text_on_display_command_line.pl 
b/tp/t/results/preformatted/text_on_display_command_line.pl
index 16a68391e2..ef17d5b376 100644
--- a/tp/t/results/preformatted/text_on_display_command_line.pl
+++ b/tp/t/results/preformatted/text_on_display_command_line.pl
@@ -477,4 +477,18 @@ $result_converted{'xml'}->{'text_on_display_command_line'} 
= '<display spaces="
 </display>
 ';
 
+
+$result_converted{'latex'}->{'text_on_display_command_line'} = '
+\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax%
+normal text
+\\end{GNUTexinfopreformatted}
+
+\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax%
+in display
+\\end{GNUTexinfopreformatted}
+
+';
+
 1;
diff --git a/tp/t/results/preformatted/text_on_example_command_line.pl 
b/tp/t/results/preformatted/text_on_example_command_line.pl
index d6252b2118..e3f2506d78 100644
--- a/tp/t/results/preformatted/text_on_example_command_line.pl
+++ b/tp/t/results/preformatted/text_on_example_command_line.pl
@@ -477,4 +477,18 @@ $result_converted{'xml'}->{'text_on_example_command_line'} 
= '<example spaces="
 </example>
 ';
 
+
+$result_converted{'latex'}->{'text_on_example_command_line'} = '
+\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax\\ttfamily%
+normal text
+\\end{GNUTexinfopreformatted}
+
+\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax\\ttfamily%
+in example
+\\end{GNUTexinfopreformatted}
+
+';
+
 1;
diff --git a/tp/t/results/preformatted/titlefont_in_example.pl 
b/tp/t/results/preformatted/titlefont_in_example.pl
index f9d81c0139..5b16b2be9d 100644
--- a/tp/t/results/preformatted/titlefont_in_example.pl
+++ b/tp/t/results/preformatted/titlefont_in_example.pl
@@ -165,4 +165,12 @@ Text.
 </pre></example>
 ';
 
+
+$result_converted{'latex'}->{'titlefont_in_example'} = '{\\huge \\bfseries 
Title}\\begin{GNUTexinfopreformatted}
+\\leftskip=2em\\relax\\ttfamily%
+
+Text.
+\\end{GNUTexinfopreformatted}
+';
+
 1;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]