On 7/3/2012 8:09 PM, Lex Trotman wrote:
On 4 July 2012 01:23, ping <[email protected]> wrote:
On 7/2/2012 11:54 PM, Lex Trotman wrote:

On 3 July 2012 13:00, ping <[email protected]> wrote:

this is exactly what I was looking for, thanks!
sorry but then a related question is, how to do the same in literal
block?
(or any other block?)
I tested with the same on literal block but it looks doesn't work that
way...


Hi,

Please always say what backend you are using

Works for me, as in asciidoc produces marked up output.

Html displays fine, docbook contains the markup, but having it show in
pdf depends on the toolchain as the note in the faq points out, works
with fop fails with dblatex.

Cheers
Lex


so to be accurate: this works great (thanks Stuart for pointing out the FAQ
link) for the listing block , but not for the literal block.
I change the email subject as well.

here is the cmd I use to generate html:

asciidoc -a toc -a toclevels=3 myfile.txt


//the strong text format works fine inside the listing block now
my title:
~~~~~~~~

please notice the *asciidoc* folder here:

[subs="quotes"]
----


ping@640g-laptop:~$ ls -lt | head
total 558016
drwxr-xr-x 47 ping ping     32768 2012-07-02 10:34 Downloads
drwxr-xr-x  3 ping ping      4096 2012-07-01 23:26 tmp
drwxr-xr-x  8 ping ping      4096 2012-07-01 23:26 bin
-rw-r--r--  1 ping ping      5554 2012-06-28 13:48 *asciidoc*    <----
drwxr-xr-x  6 ping ping      4096 2012-06-28 12:27 temp
-rw-r--r--  1 ping ping     48920 2012-06-28 11:21 temp3.html~
-rw-r--r--  1 ping ping      6184 2012-06-28 10:48 fuf
-rw-r--r--  1 ping ping     47626 2012-06-25 16:32 EIOfficelog.txt
-rw-r--r--  1 ping ping      1644 2012-06-19 19:13 temp.txt
----


//this, as "literal block" (indicated by the indent), still doesn't work.

my title:
~~~~~~~~

please notice the *asciidoc* folder here:

[subs="quotes"]


   ping@640g-laptop:~$ ls -lt | head
   total 558016
   drwxr-xr-x 47 ping ping     32768 2012-07-02 10:34 Downloads
   drwxr-xr-x  3 ping ping      4096 2012-07-01 23:26 tmp
   drwxr-xr-x  8 ping ping      4096 2012-07-01 23:26 bin
   -rw-r--r--  1 ping ping      5554 2012-06-28 13:48 *asciidoc*    <----
   drwxr-xr-x  6 ping ping      4096 2012-06-28 12:27 temp
   -rw-r--r--  1 ping ping     48920 2012-06-28 11:21 temp3.html~
   -rw-r--r--  1 ping ping      6184 2012-06-28 10:48 fuf
   -rw-r--r--  1 ping ping     47626 2012-06-25 16:32 EIOfficelog.txt
   -rw-r--r--  1 ping ping      1644 2012-06-19 19:13 temp.txt



Works for me, see attached source and output.  Note it also
substituted the ~ as <sub>, thats the problem with turning on
substitution in literals.

Cheers
Lex




regards
ping

On 7/2/2012 5:16 PM, Stuart Rackham wrote:


I think this is what you're after:


http://www.methods.co.nz/asciidoc/faq.html#_how_can_i_format_text_inside_a_listing_block


Cheers, Stuart

On 03/07/12 08:11, ping wrote:


hi experts:

I came across a need when write my report in asciidoc and I can't find
the
answer from google research.I'm still reading the manual literally...


so I find listing block is great for demonstrating the command output.
like the
following:


issue 1:
~~~~~~~~

please notice the *asciidoc* folder here:

.Optional Title
----


ping@640g-laptop:~$ ls -lt | head
total 558016
drwxr-xr-x 47 ping ping     32768 2012-07-02 10:34 Downloads
drwxr-xr-x  3 ping ping      4096 2012-07-01 23:26 tmp
drwxr-xr-x  8 ping ping      4096 2012-07-01 23:26 bin
-rw-r--r--  1 ping ping      5554 2012-06-28 13:48 asciidoc
drwxr-xr-x  6 ping ping      4096 2012-06-28 12:27 temp
-rw-r--r--  1 ping ping     48920 2012-06-28 11:21 temp3.html~
-rw-r--r--  1 ping ping      6184 2012-06-28 10:48 fuf
-rw-r--r--  1 ping ping     47626 2012-06-25 16:32 EIOfficelog.txt
-rw-r--r--  1 ping ping      1644 2012-06-19 19:13 temp.txt
----

obviously the *asciidoc* strong text doesn't work here , since it's
now inside a
listing block.

how can still apply some text format from inside a listing block? or
any other
block whichever is more suitable for my usage case.

thanks!
regards
ping




--
You received this message because you are subscribed to the Google Groups
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/asciidoc?hl=en.




thanks Lex for taking time to test.
I just tested it again and it works.
sorry to waste your time on it.

and about the substitution you mentioned,
I ran into that issue often (not only in literal block, but also in list block) and don't know how to handle it.

e.g.:

[subs="quotes"]
  ----
7. show class-of-service *classifier <classifier-name>* [for different families] 8. show class-of-service translation-table <trans-table-name> [for different families]
  9.  show class-of-service forwarding-class <fc-q-map>
  10. show class-of-service traffic-control-profile <tcp-name>
  ----

//which is rendered to be:

7.  show class-of-service classifier  [for different families]
8.  show class-of-service translation-table  [for different families]
9.  show class-of-service forwarding-class
10. show class-of-service traffic-control-profile

so be noticed all <blabla> was removed (substituted)...

how to turn it off or escape it (at least for a piece of texts)?
and can you point me some docs about that?

--
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to