By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service. The dark mode beta is finally here. Change your preferences any time. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information.

Here is what I have so far:. I think that your problem is that the vertical lineskip in tables is not big enough when hlines are between each row. The solution is to add. I was using the solution mentioned above by M, but this does not play nicely with vertical rules in the tabular environment, and so I think this is a bad choice as a default solution generally I don't include vertical rules, but one of my tables really needed them for clarity. The idea is to define a strut which should be included in one of the cells for a row which is either immediately before or after an hline.

If you are concerned about output from some other program than TeX, the right approach would be to define a higher-level command or environment to do what you want, use whatever dirty hacks inside the definitions to make the TeX output look good, and define its HTML meaning separately I don't know how to do this in Hevea, but I imagine any reasonable TeX processor would have this kind of facility.

Perhaps this has already been solved for you: does e. Does Hevea handle booktabs commands nicely? If booktabs doesn't do what you want, its source code might be interesting to look at - it's all about setting the widths and spaces of lines so that the tables look presentable.

Learn more. Asked 11 years ago. Active 1 year, 5 months ago.

Bdo blackstar enhancement

Viewed 60k times. Verhogen Verhogen Active Oldest Votes. Stefan van den Akker 5, 7 7 gold badges 34 34 silver badges 52 52 bronze badges. M M 3, 2 2 gold badges 15 15 silver badges 14 14 bronze badges. Biggest issue with this solution is that I have used it and end up with overlapping lines since pdflatex seems to draw each cell's lines separately. Svante Svante This solution is working fine for me. I would recommend using the booktabs package nowadays, which doesn't have the problem to begin with.

EmmanuelMess 1 1 gold badge 7 7 silver badges 24 24 bronze badges. Nathan Nathan 2 2 silver badges 4 4 bronze badges. Jouni K. Good point in the first paragraph. Prompted me to look into Hevea documentation instead of looking at Latex documentation. Frank Grimm Frank Grimm 1, 7 7 silver badges 11 11 bronze badges.

The Overflow Blog. Podcast Programming tutorials can be a real drag.

latex double hline

Featured on Meta. Community and Moderator guidelines for escalating issues via new response…. Feedback on Q2 Community Roadmap. Technical site integration observational experiment live on Stack Overflow.This takes an x-slope, y-slope and length like so:. To draw a horizontal line or horizontal ruleset the x-slope to 1 and the y-slope to zero.

Yz80 for sale craigslist

Depending on the margins which have been set, a length of will draw a line which is the width of the page minus the margins. Basically, all you have to do […]. Hello Tim. Thank you for this tip. Hi, this is great, thanks. Do you know how to get a double horizonal line please? Just to tart it up a bit… Thanks! Hi Kristofer, No picture environment or packages required. Thank you? And what if I want to change the color and the thickness of the line?

Which additional commands can I use? To change the color, see this post. Just what I needed, a simple explanation without all the imaginable possibilities.

Thanks a lot! Thanks for this clear and concise description of making use of lines! And also thanks for your careful replies. They were quite helpful too.

How to double underline underline title with two horizontal lines? Name required.

Keeping vertical lines intact with double \hline in LaTeX tabular

Mail will not be published required. October 9, at pm. Kristofer Bergstrom says:. March 2, at pm. March 24, at pm. Zach says:. April 23, at pm. Simon says:.Tables are common elements in most scientific documents, L a T e X provides a large set of tools to customize tables, change the size, combine cells, change the colour of cells and so on.

This article explains how. The tabular environment is the default L a T e X method to create tables. Open an example in Overleaf. The tabular environment is more flexible, you can put separator lines in between each column.

Ingress joystick

It was already said that the tabular environment is used to type tables. To be more clear about how it works below is a description of each command. This example shows double vertical and horizontal lines, when properly used help to keep the information within the table well organized.

When formatting a table you might require a fixed length either for each column or for the entire table. In the example below a fixed column width is established. First, to use the parameters shown in the example, you must import the package array in the preamble of your L a T e X file with the next command. The aligning options are m for middle, p for top and b for bottom. In standard tables new lines must be inserted manually so the table won't stretch out of the text area, when using this parameters the text is automatically formatted to fit inside each cell.

If you don't need to control the width of each cell, but of the entire table and then distribute the space within evenly, use the package tabularx. See the example below:. Notice that the environment opening statement is different, in the example the table width is set to 0.

You can use any of the L a T e X units for such length. Rows and columns can be combined in a bigger cell. The command multirow takes three parameters. The first one is the number of rows to be combined, 3 in the example.LaTeX offers a wealth of possibilities when it comes to typesetting and formatting a document. It is especially useful when you're dealing with math, but it also boasts applications far beyond that.

The price you pay in comparison to other word processing and typesetting software is for the increased complexity, but if you want your document to look the best it can, LaTeX more than worth it. As long as you're willing to learn a little when you want to do something like draw a horizontal line in LaTeX, you can do pretty much anything you need to with the system.

You need to specify the unit you're using when you do this for example, cm or ptbut if you do that, you can create a horizontal line to suit your purposes using this command. However, this command specifically relates to tables in LaTeX, so you can only use it as part of a table. The command draws a line that is the same width as the table.

For a horizontal line, you want " 1,0 " for the first part, so you get a line with a unit slope in the x -direction and no slope whatsoever in the y -direction. Again, make sure you include units for the length so that LaTeX knows what you want. This command produces a line with "rubber length," which means that the length varies depending on what it shares a line with.

This is particularly useful for contents pages, where you may want the title for a chapter and the page on the same line but separated by a horizontal line and so the page numbers are right-aligned in the final document.

This is ideal for filling the variable lengths caused by chapter titles without having to fine-tune the length using the rule command, for instance. This works in exactly the same way in that the length is variable.

Some people prefer this style for contents pages. By : Lee Johnson March 31, Share Share on Facebook. LaTeX offers a lot of ways to typeset and format a document.

Get great tech advice delivered to your inbox. Keep your family productive, connected, entertained, and safe. Please enter a valid email.By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service. The dark mode beta is finally here. Change your preferences any time. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information.

Below is a feeble attempt which fails.

Quarter wave resonator equation

Ideally, I want it gray and dashed. Any help would be appreciated using latex syntax. If so, where is the documentation?.

latex double hline

There is a reason I love php. And then use this. Learn more. Asked 9 years, 6 months ago. Active 7 years, 7 months ago. Viewed 14k times. I want to color hline, e. Active Oldest Votes. Mia Clarke Mia Clarke 7, 3 3 gold badges 44 44 silver badges 60 60 bronze badges.

Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name.

Email Required, but never shown. The Overflow Blog. Podcast Programming tutorials can be a real drag.

Hasselblad cv ii 50c digital back

Featured on Meta. Community and Moderator guidelines for escalating issues via new response…. Feedback on Q2 Community Roadmap. Technical site integration observational experiment live on Stack Overflow. Dark Mode Beta - help us root out low-contrast and un-converted bits. Related Hot Network Questions. Question feed.

Subscribe to RSS

Stack Overflow works best with JavaScript enabled.By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service. The dark mode beta is finally here. Change your preferences any time.

latex double hline

Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. You need to use colortbl to colour the default tabular rules horizontal or vertical :. Learn more. How to change color of hline in LaTex Ask Question. Asked 5 years, 5 months ago. Active 4 years, 9 months ago. Viewed 11k times. In a simple latex. MickyD Duplicate of tex. Active Oldest Votes.

Werner Werner 9, 6 6 gold badges 31 31 silver badges 53 53 bronze badges. Sandra Sandra 1. Can you make more detailed response by showing some code or what you did step-by-step? Proceed, and I'll ignore this case. Sign up or log in Sign up using Google.

latex double hline

Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Programming tutorials can be a real drag.

Featured on Meta. Community and Moderator guidelines for escalating issues via new response…. Feedback on Q2 Community Roadmap.By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service.

The dark mode beta is finally here. Change your preferences any time. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information.

I get this output :.

Horizontal Line Options in LaTeX

This means that the line. Learn more. How to Add vertical line in table Latex Ask Question. Asked 4 years, 6 months ago. Active 3 years, 3 months ago. Viewed 22k times. I have this sheet of latex code.

What's wrong with my code? Active Oldest Votes. Knorr F. Knorr 2, 9 9 silver badges 18 18 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog.

Podcast Programming tutorials can be a real drag.

How to Generate References with LaTeX (BibTeX)

Featured on Meta. Community and Moderator guidelines for escalating issues via new response…. Feedback on Q2 Community Roadmap.

Technical site integration observational experiment live on Stack Overflow. Dark Mode Beta - help us root out low-contrast and un-converted bits.

Related Hot Network Questions. Question feed. Stack Overflow works best with JavaScript enabled.