簡體   English   中英

Pandoc 風格的 Markdown 表中的嵌套縮進級別

[英]Nested indention levels within a Pandoc flavored Markdown table

鑒於以下嘗試在 Markdown 表中獲取嵌套縮進:特別注意-Methods及其嵌套項目- data sources- study eligibility criteria等:

| Component | Description | Our Approach |
|---|---|---|
| Title |  Identify the report as a systematic review incorporating a network meta-analysis (or related form of meta-analysis). | A Network Meta-Analysis of Treatments for Recurrent GBM |
| Abstract / Structured Summary | - _Background_ : main objectives  |
|     | - _Methods_ | 
|     |    - data sources | 
|     |    - study eligibility criteria | 
|     |    - participants | 
|     |    - interventions | 
|     |    - study appriasal | 
|     |    - synthesis methods such as NMA | 
|     | - _Results_ | 
|     |   - number of studies and participants identified | 
|     |   - summary estimates with corresponding confidence/credible intervals | 
|     |   - treatment rankings may also be discussed | 
|     |   - Authors may choose to summarize pairwsie comparisons against a chosen treatment | 
|     |      included in their analyses for brevity | 

通過pandoc后的結果還不錯,但確實丟失了嵌套的縮進級別:

在此處輸入圖片說明

所以特別是對於以下幾行 - 有沒有辦法保留/支持嵌套的縮進?

|     | - _Methods_ | 
|     |    - data sources | 
|     |    - study eligibility criteria | 
|     |    - participants | 

實現這一目標的一種方法是使用grid_tables

+-------------------------------+--------------------------------------------+------------------------------+
| Component                     | Description                                | Our Approach                 |
+===============================+============================================+==============================+
| Title                         | Identify the report as a systematic review | A Network Meta-Analysis of   |
|                               | incorporating a network meta-analysis      | Treatments for Recurrent GBM |
|                               | (or related form of meta-analysis).        |                              |
+-------------------------------+--------------------------------------------+------------------------------+
| Abstract /                    | - _Background_ : main objectives           |                              |
| Structured Summary            | - _Methods_                                |                              |
|                               |   - data sources                           |                              |
|                               |   - study eligibility criteria             |                              |
|                               |   - participants                           |                              |
|                               |   - interventions                          |                              |
|                               |   - study appraisal                        |                              |
|                               |   - synthesis methods such as NMA          |                              |
|                               | - _Results_                                |                              |
|                               |   - ...                                    |                              |
+-------------------------------+--------------------------------------------+------------------------------+

這有點乏味,但它可以滿足您的需求: 在此處輸入圖片說明

作為參考,我使用此命令將 Markdown 轉換為 PDF:

 cat tbl.md | pandoc -f markdown -t latex -V geometry:landscape -o tbl.pdf

一種相當笨拙但並非不可行的方法是添加不間斷空格  .

| Abstract / Structured Summary | - _Background_ : main objectives  |
|     | - _Methods_ | 
|     |        - data sources | 
|     |        - study eligibility criteria | 

在此處輸入圖片說明

我要做的是添加多個  到我的編輯器中的粘貼緩沖區,然后可以通過單個從緩沖區粘貼操作一致地添加

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM