VerbatimInput : adjust a long line of a .dat file












3















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:



enter image description here



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- ?



enter image description here



 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}









share|improve this question




















  • 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


















3















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:



enter image description here



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- ?



enter image description here



 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}









share|improve this question




















  • 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
















3












3








3








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:



enter image description here



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- ?



enter image description here



 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}









share|improve this question
















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:



enter image description here



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- ?



enter image description here



 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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 2 '17 at 18:49







DavidC.

















asked Feb 2 '17 at 13:14









DavidC.DavidC.

4241411




4241411








  • 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
















  • 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










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












1 Answer
1






active

oldest

votes


















0














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}


enter image description here



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.






share|improve this answer
























    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
    });


    }
    });














    draft saved

    draft discarded


















    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









    0














    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}


    enter image description here



    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.






    share|improve this answer




























      0














      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}


      enter image description here



      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.






      share|improve this answer


























        0












        0








        0







        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}


        enter image description here



        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.






        share|improve this answer













        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}


        enter image description here



        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.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 11 hours ago









        egregegreg

        731k8919303250




        731k8919303250






























            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            Contact image not getting when fetch all contact list from iPhone by CNContact

            count number of partitions of a set with n elements into k subsets

            A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks