I like to have a table in asciidoc, where there is an empty row in it.
The problem is, letting the row empty makes it very small automatically.
[cols="5,3,3"]
|===
|||
|===
I tried to fill the cells with spaces, + `s , line feeds, tabs. But there is no character I know, where the cell is empty on the paper and has the normal height.
What I mean is a css-like min-height, or a special character like in html.
So how to force an empty table row to have the normal line height?
Your problem seems difficult. I hope you have good reasons to add an empty row.
Maybe a small hack might help you for the moment :-)
[cols="5,3,3"]
|===
a|image:sunset.jpg[""]||
|===
I just put an image which does not exists in the first column. Maybe a one pixel image might work as well. The a in front of |makes the asciidoctor interpreter to read it as asciidoctor.
Found the solution by myself:
[cols="5a,3,3"]
|===
|{nbsp} +
{nbsp} +||
|===
The ain the column definition marks this column as asciidoc-content, so that asciidoc commands will work. The {nbsp} + is the magic keyword for an empty space, which is not like the normal space. The normal space will be ignored, the {nbsp} is not ignored.
Hope that helps for other cases too.
Found it here: https://github.com/asciidoctor/asciidoctor/wiki/How-to-insert-sequential-blank-lines
Related
I have following table in asciidoc, for which I want the very first cell to be split diagonally (or by some other means more readable) in the sense that it is clear that the top row is the "to", the first column is the "from" one:
[cols=","]
|===
a|
To →
From ↓
|Hans
|Karl
|Secret gift
|===
Please note that if I change to [cols=",",options="header"] the spaces of the first cell are removed, making it even harder to understand the table semantics.
See also How can a split diagonally a table header cell? for similar question explaining the requirement in HTML
You would need custom CSS, and possibly a background image, to perform the diagonal split that you seek.
However, built-in roles might suffice:
[cols="a,"]
|===
h|
[.right]#to →#
From ↓
|Hans
|Karl
|Secret gift
|===
This makes the "to/from" cell a header, and uses the default theme's .right style to move the "to" to the right edge of the cell.
If you do need to apply custom styles, see the section on Docinfo Files.
The answers to this question might provide an appropriate solution for you.
How can I remove lines similar to the one present in the picture(green in color on top of face)?
I have seen many methods to remove vertical or horizontal lines but here the lines seems to be curly and also i want to extract information from the image(i.e. the face image part) post the removal of these lines and hence don't want the resulting image to be grayscale.
Sample Image
Any help or suggestion is much appreciated.
I enlarged the area without the curly lines.
Im not sure how to express it so I posted a picture in link below.
It should look like this
Just enter the text on 3 lines like so:
MORE
AT
THE HALL
Then adjust the point sizes, leading, kearning, etc. to create the aesthetic you want.
In this case line 1 and 3 could have full justification.
You can use scaling of the text(as shown in the character panel in attached snapshot) because changing font size also moves the baseline and causes the text to shift downward.
These attributes are also exposed via scripting.
I have parsed a pdf document in Ruby with PDF::Reader. The bullet point of the pdf file appears in my parsed text as a strange cube with F0B7 inside like this (I also attached a print screen):
__
|F0|
|B7|
I would like to know if I can match this "bullet point" with regex and if so, what would be the appropriate way to do it? I have absolutely no idea to tackle this issue as I am not even sure that this is part of the string in the first place. Thanks.
This is a unicode symbol with codepoint F0B7.
Unfortunately your Ubuntu installation has a default font that misses that glyph, and when glyph is missing in the font definition, the common approach is to draw it’s codepoint in a square.
The regexp to match it would be:
/\uF0B7/
I already have made a new font to create the barcode in my Smartform. But now the next step.
How can I create a barcode with a horizontal line trough it?
Example:
Hope anyone could help me. I'm pretty stuck here.
i don't think there is a strikethrough option for the fonts.
if the barcode is always present at the same place, and nearly occupy the same place, you could use one of the following method
simulate the line with an empty windows over the one containing the barcode, with a non null border
use an empty window with an image containing the line
regards