in Education by
I have a document with many similar tables. I thought it is possible to set this table cols and header as attribute :table-params: width="100%",cols="12%,21%,67%",options="header" :table-header: |this |is |header .table [{table-params}] |==== {table-header} but its get en error: table missing leading separator. Looks like asciidoc can't post-render attribute values. pass macro also didn't help I found a solution with include macro with tag .table-1 |==== // tag::table-header[] |this |is |header // end::table-header[] .table-2 |==== include::example.adoc[tag=table-header] Maybe I have missed something. What is a most elegant way to reuse marked-up parts across document? JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Attributes effectively define string values that can be re-used throughout a document's content. However, a table's attribute definition requires a list of arguments, not a string that looks like a list of arguments. The most elegant re-use for markup is the include:: macro, which operates as if it injects the specified content at the location of the include:: macro. See the docs for more details: https://docs.asciidoctor.org/asciidoc/latest/directives/include/

Related questions

0 votes
    I'm using VB code created by L42 on 4/27/14 that creates a checkbox list in a single cell. ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 11, 2022 in Education by JackTerrance
0 votes
    Say I have a dictionary that the key of year, and the corresponding value of a list of values. Is ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 7, 2022 in Education by JackTerrance
0 votes
    13. The is the number of cells spread across the row and columns. (1 Point) * Select the correct answer from above options...
asked Dec 17, 2021 in Education by JackTerrance
0 votes
    How can set row number for each table row created by dir-paginate angularJs. I use two way code ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 14, 2022 in Education by JackTerrance
0 votes
    I have a mat-table with a component app-order-statuses on every row. the component calls the statuses ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 3, 2022 in Education by JackTerrance
0 votes
    This is the example table that I want to do From the 'Yellow' highlight (row & column) color. I ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 29, 2022 in Education by JackTerrance
0 votes
    I have an HTML table with a search field to filter the result by Name. And another field to show ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 22, 2022 in Education by JackTerrance
0 votes
    I need to show a details view based on a selected row in a table. I would like to show which ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 2, 2022 in Education by JackTerrance
0 votes
    I need to show a details view based on a selected row in a table. I would like to show which ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 2, 2022 in Education by JackTerrance
0 votes
    write the code to make 2×2 table (means two row and two columns) in html Select the correct answer from above options...
asked Nov 28, 2021 in Education by JackTerrance
0 votes
    Which of the following is an attribute that can uniquely identify a row in a table? (a) Secondary ... Answers, Database Interview Questions and Answers for Freshers and Experience...
asked Oct 11, 2021 in Education by JackTerrance
0 votes
    The property (or set of properties) that uniquely defines each row in a table is called the: (a) ... Answers, Database Interview Questions and Answers for Freshers and Experience...
asked Oct 11, 2021 in Education by JackTerrance
0 votes
    Word provides three methods to create a table of content in a document(tick the wrong one) * a.using ... table of content option Select the correct answer from above options...
asked Dec 21, 2021 in Education by JackTerrance
0 votes
    The _________ is a necessary index in a long document * a.Template b.Table of content c.style d.mail merge Select the correct answer from above options...
asked Dec 15, 2021 in Education by JackTerrance
0 votes
    What is a document vector table? Select the correct answer from above options...
asked Nov 12, 2021 in Education by JackTerrance
...