Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch for pod2latex #1854

Closed
p5pRT opened this issue Apr 18, 2000 · 1 comment
Closed

Patch for pod2latex #1854

p5pRT opened this issue Apr 18, 2000 · 1 comment

Comments

@p5pRT
Copy link

p5pRT commented Apr 18, 2000

Migrated from rt.perl.org#3117 (status was 'resolved')

Searchable as RT3117$

@p5pRT
Copy link
Author

p5pRT commented Apr 18, 2000

From urban@ast.lmco.com

Below is a change log entry and a patch that allows pod2latex to correctly
generate latex files from pod pages.

D. S. Urban
email : urban@​ast.lmco.com


To be the person, you must know the person. To know the person, you must
understand the person. To understand the person, you must listen. To listen,
you must open your mind and put aside all preconceived ideas and notions.


All opinions expressed are my own not that of my employer

-------------------------- Change Log entry ------------------------------------

2000-04-17 D. Scott Urban <urban@​ast.lmco.com>

  * pod2latex.PL​: Added commands and uncommented lines to allow pod2latex to
  generate a correct latex file.

Index pod2latex.PL

diff -c -3 -p pod2latex.PL.old pod2latex.PL
*** pod2latex.PL.old Tue Apr 18 09​:10​:48 2000
--- pod2latex.PL Tue Apr 18 09​:22​:08 2000
*************** while (<POD>) {
*** 505,510 ****
--- 505,511 ----
  }
 
  print LATEX "\n";
+ print LATEX "\\end{document}\n";
  close(POD);
  close(LATEX);
 
*************** close(LATEX);
*** 512,524 ****
  #########################################################################
 
  sub do_hdr {
  print LATEX "% LaTeX document produced by pod2latex from \"$pod.pod\".\n";
  print LATEX "% The followings need be defined in the preamble of this
document​:\n";
! print LATEX "%\\def\\C++{{\\rm
C\\kern-.05em\\raise.3ex\\hbox{\\footnotesize ++}}}\n";
! print LATEX "%\\def\\underscore{\\leavevmode\\kern.04em\\vbox{\\hrule
width 0.4em height 0.3pt}}\n";
! print LATEX "%\\setlength{\\parindent}{0pt}\n";
  print LATEX "\n";
  $podq = &escape_tex_specials("\U$pod\E");
  print LATEX "\\section{$podq}%\n";
  print LATEX "\\index{$podq}";
  print LATEX "\n";
--- 513,528 ----
  #########################################################################
 
  sub do_hdr {
+ print LATEX "\\documentclass{article}\n";
+ print LATEX "\\normalsize\n";
  print LATEX "% LaTeX document produced by pod2latex from \"$pod.pod\".\n";
  print LATEX "% The followings need be defined in the preamble of this
document​:\n";
! print LATEX "\\def\\C++{{\\rm
C\\kern-.05em\\raise.3ex\\hbox{\\footnotesize ++}}}\n";
! print LATEX "\\def\\underscore{\\leavevmode\\kern.04em\\vbox{\\hrule width
0.4em height 0.3pt}}\n";
! print LATEX "\\setlength{\\parindent}{0pt}\n";
  print LATEX "\n";
  $podq = &escape_tex_specials("\U$pod\E");
+ print LATEX "\\begin{document}\n";
  print LATEX "\\section{$podq}%\n";
  print LATEX "\\index{$podq}";
  print LATEX "\n";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant