is there a package that allows one to import a selection of lines from an external .txt file?
I know minted has a command that can be customized this way: \inputminted[firstline=3,lastline=5]{c}{hello.c}
(see this link), but I'm looking for something more neutral, not specific to any programming language. This is because I'm writing a commands.txt file with a long list of Cisco's router/switch configuration commands that I'm learning, and I'd like to import only few required lines as a way to showcase examples. Obviously, minted doesn't include any 'cisco' language. I know of \verb
and the verbatim
environment, but I gather there could be problems with breaking long lines.
text
option for minted that just prints the plain text without highlighting. Does that fulfill your needs?text
lexer...