Skip to content
TheChatArchiveThe Chat Archive
gpt-3.5-turbo-0613· OpenAIAi2 WildChat-4.8M (AI2)

Here is some latex (overleaf) code. What I want to do is alter the length of the…

  1. User

    Here is some latex (overleaf) code. What I want to do is alter the length of the horizontal lines so that instead of extending all the way to the right, they stop a few characters after the end of "Plagiarised Works"

    \documentclass{article} \usepackage{array} \usepackage[margin=1in, left=0.15in]{geometry} \usepackage{pdflscape}

    \begin{document} \begin{landscape} \begin{flushleft} \begin{tabular}{l@{\hspace{5em}}l} \hline \textbf{Pamphlet} & \textbf{Plagiarised Works} \ \hline \textit{The Christian Navy} (1602) & Barnaby Googe, \textit{The Shippe of safegarde} (1569) \ \hline \textit{The Black Year} (1606) & Thomas Lodge, \textit{A Fig for Momus} (1595) \ & Henry Smith, \textit{God's Arrow against Atheists} (1593) \ & Thomas Wright, \textit{The Passions of the Mind in general} (1601) \ & Sir Thomas Smith, \textit{A compendious or brief examination of certain ordinary complaints} (1581) \ & 'Simon Smellknave', \textit{Feareful and lamentable effects of two dangerous Comets} (1590) \ \hline \textit{A true Relation of the Travels of M. Bush} (1608) & Thomas Wright, \textit{The Passions of the Mind in general} (1601) \ \hline \textit{The Dignitie of Man} (1612) & Pierre de la Primaudaye, \textit{The French Academie} (1586) \ & Robert Greene, \textit{Greenes Mourning Garment} (1590) \ & Book 13 \ \hline \textit{A Straunge Foor-Post} (1613) & W. M., \textit{The Man in the Moone} (1609) \ & Robert Greene, \textit{Greenes Mourning Garment} (1590) \ & John Lyly, \textit{Euphues: the Anatomy of Wit} (1578) \ \hline \textit{The Scourge of Corruption} (1615) & Thomas Dekker, \textit{A Strange Horse-Race} (1613) \ & Thomas Lodge, \textit{A Fig for Momus} (1595) \ & Robert Greene, \textit{The Third Part of Cony-Catching} (1592) \ \end{tabular} \end{flushleft} \end{landscape}

    \end{document}

  2. Assistant

    To alter the length of the horizontal lines in the table, you can use the \rule command to create custom lines. Here's an example of how you can modify the code:

    \documentclass{article} \usepackage{array} \usepackage[margin=1in, left=0.15in]{geometry} \usepackage{pdflscape}

    \begin{document} \begin{landscape} \begin{flushleft} \begin{tabular}{l@{\hspace{5em}}l} \hline \textbf{Pamphlet} & \textbf{Plagiarised Works} \ \hline \rule{0pt}{4ex}\textit{The Christian Navy} (1602) & Barnaby Googe, \textit{The Shippe of safegarde} (1569) \ \rule{0pt}{4ex}\textit{The Black Year} (1606) & Thomas Lodge, \textit{A Fig for Momus} (1595) \ & Henry Smith, \textit{God's Arrow against Atheists} (1593) \ & Thomas Wright, \textit{The Passions of the Mind in general} (1601) \ & Sir Thomas Smith, \textit{A compendious or brief examination of certain ordinary complaints} (1581) \ & 'Simon Smellknave', \textit{Feareful and lamentable effects of two dangerous Comets} (1590) \ \rule{0pt}{4ex}\textit{A true Relation of the Travels of M. Bush} (1608) & Thomas Wright, \textit{The Passions of the Mind in general} (1601) \ \rule{0pt}{4ex}\textit{The Dignitie of Man} (1612) & Pierre de la Primaudaye, \textit{The French Academie} (1586) \ & Robert Greene, \textit{Greenes Mourning Garment} (1590) \ & Book 13 \ \rule{0pt}{4ex}\textit{A Straunge Foor-Post} (1613) & W. M., \textit{The Man in the Moone} (1609) \ & Robert Greene, \textit{Greenes Mourning Garment} (1590) \ & John Lyly, \textit{Euphues: the Anatomy of Wit} (1578) \ \rule{0pt}{4ex}\textit{The Scourge of Corruption} (1615) & Thomas Dekker, \textit{A Strange Horse-Race} (1613) \ & Thomas Lodge, \textit{A Fig for Momus} (1595) \ & Robert Greene, \textit{The Third Part of Cony-Catching} (1592) \ \end{tabular} \end{flushleft} \end{landscape}

    \end{document}

    In the modified code, I added \rule{0pt}{4ex} before each line to create a 4ex-height invisible line, effectively reducing the length of the horizontal lines to a few characters after "Plagiarised Works". Feel free to adjust the height (4ex) as needed.