VerbatimInput : adjust a long line of a .dat file
In this document, VerbatimInput
is calling test_2.dat
.
test_2.dat
contains a line too long, so that the compilation produces a pdf where that line is not entirely seen:
By using adjustbox
, one can adjust the verbatim text:
begin{adjustbox}{max width=linewidth}
begin{BVerbatim}
text
end{BVerbatim}
end{adjustbox}
However, this solution is only valid when the text is directly introduced as verbatim.
I have to use VerbatimInput
because I need to call this tesst_2.dat
file.
Is there a way to include adjustbox
inside VerbatimInput
?
Or any solution to shrink this VerbatimInput
text ?
These are the .tex
and test_2.dat
files:
documentclass[12pt]{article}
usepackage[left=2.5cm,top=2.5cm,right=2.5cm,bottom=2.5cm]{geometry}
usepackage[utf8]{inputenc}
usepackage{enumitem}
usepackage{fancyvrb}
usepackage{color,soul}
usepackage[dvipsnames]{xcolor}
begin{document}
RecustomVerbatimCommand{VerbatimInput}{VerbatimInput}%
{fontsize=footnotesize,
%
frame=lines, % top and bottom rule only
framesep=2em, % separation between frame and text
rulecolor=color{Gray},
%
label=fbox{color{Black}test.dat},
labelposition=topline,
%
%commandchars=|(), % escape character and argument delimiters for
% commands within the verbatim
%commentchar=* % comment character
}
VerbatimInput{./test_2.dat}
end{document}
The test_2.dat
file:
#####l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220
14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220
14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220
14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220
14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220
14.756876 # -> reorientation volumregfddfg
#l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg
#l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg
####l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg
#l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg
#l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg
#####l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg
####l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg
####l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg
#l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg
NEW Edit: Following @egreg's comment:
I am using BVerbatimInput
, inside the begin{adjustbox}
, like shown below, but this generates a pdf where there is no page break, and the rest of the content of the test_2.dat
file does not appear:
Is there a way of making the test_2.dat
file to be shown normally: - letting the test_2.dat
file occupy as many pdf pages as it requires- ?
documentclass[12pt]{article}
usepackage[left=2.5cm,top=2.5cm,right=2.5cm,bottom=2.5cm]{geometry}
usepackage[utf8]{inputenc}
usepackage{enumitem}
usepackage{adjustbox}
usepackage{fancyvrb}
usepackage{color,soul}
usepackage[dvipsnames]{xcolor}
begin{document}
begin{adjustbox}{max width=linewidth}
RecustomVerbatimCommand{BVerbatimInput}{BVerbatimInput}%
{fontsize=footnotesize,
%
frame=lines, % top and bottom rule only
framesep=2em, % separation between frame and text
rulecolor=color{Gray},
%
label=fbox{color{Black}test.dat},
labelposition=topline,
%
%commandchars=|(), % escape character and argument delimiters for
% commands within the verbatim
%commentchar=* % comment character
}
BVerbatimInput{./test_2.dat}
end{adjustbox}
end{document}
verbatim input texinputs
add a comment |
In this document, VerbatimInput
is calling test_2.dat
.
test_2.dat
contains a line too long, so that the compilation produces a pdf where that line is not entirely seen:
By using adjustbox
, one can adjust the verbatim text:
begin{adjustbox}{max width=linewidth}
begin{BVerbatim}
text
end{BVerbatim}
end{adjustbox}
However, this solution is only valid when the text is directly introduced as verbatim.
I have to use VerbatimInput
because I need to call this tesst_2.dat
file.
Is there a way to include adjustbox
inside VerbatimInput
?
Or any solution to shrink this VerbatimInput
text ?
These are the .tex
and test_2.dat
files:
documentclass[12pt]{article}
usepackage[left=2.5cm,top=2.5cm,right=2.5cm,bottom=2.5cm]{geometry}
usepackage[utf8]{inputenc}
usepackage{enumitem}
usepackage{fancyvrb}
usepackage{color,soul}
usepackage[dvipsnames]{xcolor}
begin{document}
RecustomVerbatimCommand{VerbatimInput}{VerbatimInput}%
{fontsize=footnotesize,
%
frame=lines, % top and bottom rule only
framesep=2em, % separation between frame and text
rulecolor=color{Gray},
%
label=fbox{color{Black}test.dat},
labelposition=topline,
%
%commandchars=|(), % escape character and argument delimiters for
% commands within the verbatim
%commentchar=* % comment character
}
VerbatimInput{./test_2.dat}
end{document}
The test_2.dat
file:
#####l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220
14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220
14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220
14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220
14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220
14.756876 # -> reorientation volumregfddfg
#l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg
#l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg
####l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg
#l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg
#l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg
#####l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg
####l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg
####l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg
#l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg
NEW Edit: Following @egreg's comment:
I am using BVerbatimInput
, inside the begin{adjustbox}
, like shown below, but this generates a pdf where there is no page break, and the rest of the content of the test_2.dat
file does not appear:
Is there a way of making the test_2.dat
file to be shown normally: - letting the test_2.dat
file occupy as many pdf pages as it requires- ?
documentclass[12pt]{article}
usepackage[left=2.5cm,top=2.5cm,right=2.5cm,bottom=2.5cm]{geometry}
usepackage[utf8]{inputenc}
usepackage{enumitem}
usepackage{adjustbox}
usepackage{fancyvrb}
usepackage{color,soul}
usepackage[dvipsnames]{xcolor}
begin{document}
begin{adjustbox}{max width=linewidth}
RecustomVerbatimCommand{BVerbatimInput}{BVerbatimInput}%
{fontsize=footnotesize,
%
frame=lines, % top and bottom rule only
framesep=2em, % separation between frame and text
rulecolor=color{Gray},
%
label=fbox{color{Black}test.dat},
labelposition=topline,
%
%commandchars=|(), % escape character and argument delimiters for
% commands within the verbatim
%commentchar=* % comment character
}
BVerbatimInput{./test_2.dat}
end{adjustbox}
end{document}
verbatim input texinputs
1
You could useBVerbatimInput
, but you need to add the frame yourself.
– egreg
Feb 2 '17 at 15:49
@egreg Thank you very much for your comment. I have usedBVerbatimInput
but I am afraid it does not work (forgive me if I got it wrong, see Edit ) Could you please help me? Thank you very much
– DavidC.
Feb 2 '17 at 17:09
@egreg OK, I finally managed to accomplish that part of the problem, but still is not solved (see the new edit) - Thanks –
– DavidC.
Feb 2 '17 at 20:05
add a comment |
In this document, VerbatimInput
is calling test_2.dat
.
test_2.dat
contains a line too long, so that the compilation produces a pdf where that line is not entirely seen:
By using adjustbox
, one can adjust the verbatim text:
begin{adjustbox}{max width=linewidth}
begin{BVerbatim}
text
end{BVerbatim}
end{adjustbox}
However, this solution is only valid when the text is directly introduced as verbatim.
I have to use VerbatimInput
because I need to call this tesst_2.dat
file.
Is there a way to include adjustbox
inside VerbatimInput
?
Or any solution to shrink this VerbatimInput
text ?
These are the .tex
and test_2.dat
files:
documentclass[12pt]{article}
usepackage[left=2.5cm,top=2.5cm,right=2.5cm,bottom=2.5cm]{geometry}
usepackage[utf8]{inputenc}
usepackage{enumitem}
usepackage{fancyvrb}
usepackage{color,soul}
usepackage[dvipsnames]{xcolor}
begin{document}
RecustomVerbatimCommand{VerbatimInput}{VerbatimInput}%
{fontsize=footnotesize,
%
frame=lines, % top and bottom rule only
framesep=2em, % separation between frame and text
rulecolor=color{Gray},
%
label=fbox{color{Black}test.dat},
labelposition=topline,
%
%commandchars=|(), % escape character and argument delimiters for
% commands within the verbatim
%commentchar=* % comment character
}
VerbatimInput{./test_2.dat}
end{document}
The test_2.dat
file:
#####l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220
14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220
14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220
14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220
14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220
14.756876 # -> reorientation volumregfddfg
#l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg
#l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg
####l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg
#l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg
#l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg
#####l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg
####l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg
####l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg
#l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg
NEW Edit: Following @egreg's comment:
I am using BVerbatimInput
, inside the begin{adjustbox}
, like shown below, but this generates a pdf where there is no page break, and the rest of the content of the test_2.dat
file does not appear:
Is there a way of making the test_2.dat
file to be shown normally: - letting the test_2.dat
file occupy as many pdf pages as it requires- ?
documentclass[12pt]{article}
usepackage[left=2.5cm,top=2.5cm,right=2.5cm,bottom=2.5cm]{geometry}
usepackage[utf8]{inputenc}
usepackage{enumitem}
usepackage{adjustbox}
usepackage{fancyvrb}
usepackage{color,soul}
usepackage[dvipsnames]{xcolor}
begin{document}
begin{adjustbox}{max width=linewidth}
RecustomVerbatimCommand{BVerbatimInput}{BVerbatimInput}%
{fontsize=footnotesize,
%
frame=lines, % top and bottom rule only
framesep=2em, % separation between frame and text
rulecolor=color{Gray},
%
label=fbox{color{Black}test.dat},
labelposition=topline,
%
%commandchars=|(), % escape character and argument delimiters for
% commands within the verbatim
%commentchar=* % comment character
}
BVerbatimInput{./test_2.dat}
end{adjustbox}
end{document}
verbatim input texinputs
In this document, VerbatimInput
is calling test_2.dat
.
test_2.dat
contains a line too long, so that the compilation produces a pdf where that line is not entirely seen:
By using adjustbox
, one can adjust the verbatim text:
begin{adjustbox}{max width=linewidth}
begin{BVerbatim}
text
end{BVerbatim}
end{adjustbox}
However, this solution is only valid when the text is directly introduced as verbatim.
I have to use VerbatimInput
because I need to call this tesst_2.dat
file.
Is there a way to include adjustbox
inside VerbatimInput
?
Or any solution to shrink this VerbatimInput
text ?
These are the .tex
and test_2.dat
files:
documentclass[12pt]{article}
usepackage[left=2.5cm,top=2.5cm,right=2.5cm,bottom=2.5cm]{geometry}
usepackage[utf8]{inputenc}
usepackage{enumitem}
usepackage{fancyvrb}
usepackage{color,soul}
usepackage[dvipsnames]{xcolor}
begin{document}
RecustomVerbatimCommand{VerbatimInput}{VerbatimInput}%
{fontsize=footnotesize,
%
frame=lines, % top and bottom rule only
framesep=2em, % separation between frame and text
rulecolor=color{Gray},
%
label=fbox{color{Black}test.dat},
labelposition=topline,
%
%commandchars=|(), % escape character and argument delimiters for
% commands within the verbatim
%commentchar=* % comment character
}
VerbatimInput{./test_2.dat}
end{document}
The test_2.dat
file:
#####l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220
14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220
14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220
14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220
14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220
14.756876 # -> reorientation volumregfddfg
#l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg
#l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg
####l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg
#l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg
#l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg
#####l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg
####l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg
####l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg
#l.253:
AL BL LC AA BB CC E
2.75319 2.75319 2.75319 60.67009 65.70804 68.04220 14.756876 # -> reorientation volumregfddfg
NEW Edit: Following @egreg's comment:
I am using BVerbatimInput
, inside the begin{adjustbox}
, like shown below, but this generates a pdf where there is no page break, and the rest of the content of the test_2.dat
file does not appear:
Is there a way of making the test_2.dat
file to be shown normally: - letting the test_2.dat
file occupy as many pdf pages as it requires- ?
documentclass[12pt]{article}
usepackage[left=2.5cm,top=2.5cm,right=2.5cm,bottom=2.5cm]{geometry}
usepackage[utf8]{inputenc}
usepackage{enumitem}
usepackage{adjustbox}
usepackage{fancyvrb}
usepackage{color,soul}
usepackage[dvipsnames]{xcolor}
begin{document}
begin{adjustbox}{max width=linewidth}
RecustomVerbatimCommand{BVerbatimInput}{BVerbatimInput}%
{fontsize=footnotesize,
%
frame=lines, % top and bottom rule only
framesep=2em, % separation between frame and text
rulecolor=color{Gray},
%
label=fbox{color{Black}test.dat},
labelposition=topline,
%
%commandchars=|(), % escape character and argument delimiters for
% commands within the verbatim
%commentchar=* % comment character
}
BVerbatimInput{./test_2.dat}
end{adjustbox}
end{document}
verbatim input texinputs
verbatim input texinputs
edited Feb 2 '17 at 18:49
DavidC.
asked Feb 2 '17 at 13:14
DavidC.DavidC.
4241411
4241411
1
You could useBVerbatimInput
, but you need to add the frame yourself.
– egreg
Feb 2 '17 at 15:49
@egreg Thank you very much for your comment. I have usedBVerbatimInput
but I am afraid it does not work (forgive me if I got it wrong, see Edit ) Could you please help me? Thank you very much
– DavidC.
Feb 2 '17 at 17:09
@egreg OK, I finally managed to accomplish that part of the problem, but still is not solved (see the new edit) - Thanks –
– DavidC.
Feb 2 '17 at 20:05
add a comment |
1
You could useBVerbatimInput
, but you need to add the frame yourself.
– egreg
Feb 2 '17 at 15:49
@egreg Thank you very much for your comment. I have usedBVerbatimInput
but I am afraid it does not work (forgive me if I got it wrong, see Edit ) Could you please help me? Thank you very much
– DavidC.
Feb 2 '17 at 17:09
@egreg OK, I finally managed to accomplish that part of the problem, but still is not solved (see the new edit) - Thanks –
– DavidC.
Feb 2 '17 at 20:05
1
1
You could use
BVerbatimInput
, but you need to add the frame yourself.– egreg
Feb 2 '17 at 15:49
You could use
BVerbatimInput
, but you need to add the frame yourself.– egreg
Feb 2 '17 at 15:49
@egreg Thank you very much for your comment. I have used
BVerbatimInput
but I am afraid it does not work (forgive me if I got it wrong, see Edit ) Could you please help me? Thank you very much– DavidC.
Feb 2 '17 at 17:09
@egreg Thank you very much for your comment. I have used
BVerbatimInput
but I am afraid it does not work (forgive me if I got it wrong, see Edit ) Could you please help me? Thank you very much– DavidC.
Feb 2 '17 at 17:09
@egreg OK, I finally managed to accomplish that part of the problem, but still is not solved (see the new edit) - Thanks –
– DavidC.
Feb 2 '17 at 20:05
@egreg OK, I finally managed to accomplish that part of the problem, but still is not solved (see the new edit) - Thanks –
– DavidC.
Feb 2 '17 at 20:05
add a comment |
1 Answer
1
active
oldest
votes
I see no “automatic” way to do it, but you can easily play with font sizes: in your setup,
fontsize{7}{9}selectfont
is good.
documentclass[12pt]{article}
usepackage[left=2.5cm,top=2.5cm,right=2.5cm,bottom=2.5cm]{geometry}
usepackage[utf8]{inputenc}
usepackage{enumitem}
usepackage{fancyvrb}
usepackage{color,soul}
usepackage[dvipsnames]{xcolor}
RecustomVerbatimCommand{VerbatimInput}{VerbatimInput}{
fontsize=footnotesize % default
%
frame=lines, % top and bottom rule only
framesep=2em, % separation between frame and text
rulecolor=color{Gray},
%
label=fbox{color{Black}test.dat},
labelposition=topline,
%
%commandchars=|(), % escape character and argument delimiters for
% commands within the verbatim
%commentchar=* % comment character
}
begin{document}
VerbatimInput[fontsize=fontsize{7}{9}selectfont]{jobname.dat}
end{document}
You may need to add
RequirePackage{fix-cm}
at the very top of the document, before documentclass
, if you want to exercise finer control on the font size.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f351730%2fverbatiminput-adjust-a-long-line-of-a-dat-file%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I see no “automatic” way to do it, but you can easily play with font sizes: in your setup,
fontsize{7}{9}selectfont
is good.
documentclass[12pt]{article}
usepackage[left=2.5cm,top=2.5cm,right=2.5cm,bottom=2.5cm]{geometry}
usepackage[utf8]{inputenc}
usepackage{enumitem}
usepackage{fancyvrb}
usepackage{color,soul}
usepackage[dvipsnames]{xcolor}
RecustomVerbatimCommand{VerbatimInput}{VerbatimInput}{
fontsize=footnotesize % default
%
frame=lines, % top and bottom rule only
framesep=2em, % separation between frame and text
rulecolor=color{Gray},
%
label=fbox{color{Black}test.dat},
labelposition=topline,
%
%commandchars=|(), % escape character and argument delimiters for
% commands within the verbatim
%commentchar=* % comment character
}
begin{document}
VerbatimInput[fontsize=fontsize{7}{9}selectfont]{jobname.dat}
end{document}
You may need to add
RequirePackage{fix-cm}
at the very top of the document, before documentclass
, if you want to exercise finer control on the font size.
add a comment |
I see no “automatic” way to do it, but you can easily play with font sizes: in your setup,
fontsize{7}{9}selectfont
is good.
documentclass[12pt]{article}
usepackage[left=2.5cm,top=2.5cm,right=2.5cm,bottom=2.5cm]{geometry}
usepackage[utf8]{inputenc}
usepackage{enumitem}
usepackage{fancyvrb}
usepackage{color,soul}
usepackage[dvipsnames]{xcolor}
RecustomVerbatimCommand{VerbatimInput}{VerbatimInput}{
fontsize=footnotesize % default
%
frame=lines, % top and bottom rule only
framesep=2em, % separation between frame and text
rulecolor=color{Gray},
%
label=fbox{color{Black}test.dat},
labelposition=topline,
%
%commandchars=|(), % escape character and argument delimiters for
% commands within the verbatim
%commentchar=* % comment character
}
begin{document}
VerbatimInput[fontsize=fontsize{7}{9}selectfont]{jobname.dat}
end{document}
You may need to add
RequirePackage{fix-cm}
at the very top of the document, before documentclass
, if you want to exercise finer control on the font size.
add a comment |
I see no “automatic” way to do it, but you can easily play with font sizes: in your setup,
fontsize{7}{9}selectfont
is good.
documentclass[12pt]{article}
usepackage[left=2.5cm,top=2.5cm,right=2.5cm,bottom=2.5cm]{geometry}
usepackage[utf8]{inputenc}
usepackage{enumitem}
usepackage{fancyvrb}
usepackage{color,soul}
usepackage[dvipsnames]{xcolor}
RecustomVerbatimCommand{VerbatimInput}{VerbatimInput}{
fontsize=footnotesize % default
%
frame=lines, % top and bottom rule only
framesep=2em, % separation between frame and text
rulecolor=color{Gray},
%
label=fbox{color{Black}test.dat},
labelposition=topline,
%
%commandchars=|(), % escape character and argument delimiters for
% commands within the verbatim
%commentchar=* % comment character
}
begin{document}
VerbatimInput[fontsize=fontsize{7}{9}selectfont]{jobname.dat}
end{document}
You may need to add
RequirePackage{fix-cm}
at the very top of the document, before documentclass
, if you want to exercise finer control on the font size.
I see no “automatic” way to do it, but you can easily play with font sizes: in your setup,
fontsize{7}{9}selectfont
is good.
documentclass[12pt]{article}
usepackage[left=2.5cm,top=2.5cm,right=2.5cm,bottom=2.5cm]{geometry}
usepackage[utf8]{inputenc}
usepackage{enumitem}
usepackage{fancyvrb}
usepackage{color,soul}
usepackage[dvipsnames]{xcolor}
RecustomVerbatimCommand{VerbatimInput}{VerbatimInput}{
fontsize=footnotesize % default
%
frame=lines, % top and bottom rule only
framesep=2em, % separation between frame and text
rulecolor=color{Gray},
%
label=fbox{color{Black}test.dat},
labelposition=topline,
%
%commandchars=|(), % escape character and argument delimiters for
% commands within the verbatim
%commentchar=* % comment character
}
begin{document}
VerbatimInput[fontsize=fontsize{7}{9}selectfont]{jobname.dat}
end{document}
You may need to add
RequirePackage{fix-cm}
at the very top of the document, before documentclass
, if you want to exercise finer control on the font size.
answered 11 hours ago
egregegreg
731k8919303250
731k8919303250
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f351730%2fverbatiminput-adjust-a-long-line-of-a-dat-file%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
You could use
BVerbatimInput
, but you need to add the frame yourself.– egreg
Feb 2 '17 at 15:49
@egreg Thank you very much for your comment. I have used
BVerbatimInput
but I am afraid it does not work (forgive me if I got it wrong, see Edit ) Could you please help me? Thank you very much– DavidC.
Feb 2 '17 at 17:09
@egreg OK, I finally managed to accomplish that part of the problem, but still is not solved (see the new edit) - Thanks –
– DavidC.
Feb 2 '17 at 20:05