Using a table format

575 views
Skip to first unread message

David Sumbler

unread,
Dec 25, 2015, 11:35:12 AM12/25/15
to anki-a...@googlegroups.com
When learning a language, I sometimes would like to arrange an answer in
the form of a table. For instance, a question in a Latin deck might be
"quis (singular forms)", and the answer would be a matrix of 18 words,
with 3 columns for masculine, feminine and neuter forms and 6 lines
representing each of the cases of the word.

I do not want any borders or separating lines; but I would like the
words to be left-aligned vertically, i.e. so that in each column the
initial letters of the words are vertically above one another.

What would be the simplest way to achieve this, preferably in Ankidroid
(which is what I use mostly) or possibly in Anki, if that is more
practical?

David

Eginhard

unread,
Dec 25, 2015, 11:45:08 AM12/25/15
to anki-a...@googlegroups.com
You can use arbitrary HTML on your notes, here's a good tutorial for HTML tables: http://www.w3schools.com/html/html_tables.asp
It will definitely be a lot easier to add them in Anki Desktop.

Eginhard


David

--
You received this message because you are subscribed to the Google Groups "AnkiDroid" group.
To unsubscribe from this group and stop receiving emails from it, send an email to anki-android...@googlegroups.com.
To post to this group, send email to anki-a...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/anki-android/1451061304.24540.7.camel%40vesta.
For more options, visit https://groups.google.com/d/optout.

Lizz Gilmore

unread,
Dec 25, 2015, 11:51:59 AM12/25/15
to AnkiDroid, enno.herman...@gmail.com
Here's some information to get you started, David: http://ankisrs.net/docs/manual.html#cards-and-templates

Short overview of what needs to be done: Use the link above to look into creating a custom template for your Anki cards, using CSS and HTML tables, which, as Eginhard mentioned, is most easily accomplished via the Anki desktop application (i.e. on the computer). Once you have it formatted to your liking, you can move the cards to your AnkiDroid app either using Cloud sync or by manually export/importing them, and the formatting should work well on your Android device (though it may need to be tweaked).

The long overview is ... much longer. You would want to use the information in the section on Field Styling to figure out how to create a template that has an HTML table with one of the card Fields occupying each cell of the table. As part of this, you'd want separate fields for each word in your matrix. Some CSS would be necessary to make sure that the lines between cells are hidden.

Before you dive into this, you may want to look at some of the Shared Decks to see if someone has uploaded a deck that happens to use the type of template/"Note Type" that you're looking for - It may be easier to adapt an existing template than create one from scratch!

Hope this helps.

On Friday, December 25, 2015 at 11:45:08 AM UTC-5, Eginhard wrote:
You can use arbitrary HTML on your notes, here's a good tutorial for HTML tables: http://www.w3schools.com/html/html_tables.asp
It will definitely be a lot easier to add them in Anki Desktop.

Eginhard
On 25 December 2015 at 16:35, David Sumbler <da...@aeolia.co.uk> wrote:
When learning a language, I sometimes would like to arrange an answer in
the form of a table.  For instance, a question in a Latin deck might be
"quis (singular forms)", and the answer would be a matrix of 18 words,
with 3 columns for masculine, feminine and neuter forms and 6 lines
representing each of the cases of the word.

I do not want any borders or separating lines; but I would like the
words to be left-aligned vertically, i.e. so that in each column the
initial letters of the words are vertically above one another.

What would be the simplest way to achieve this, preferably in Ankidroid
(which is what I use mostly) or possibly in Anki, if that is more
practical?

David

--
You received this message because you are subscribed to the Google Groups "AnkiDroid" group.
To unsubscribe from this group and stop receiving emails from it, send an email to anki-android+unsubscribe@googlegroups.com.

David Sumbler

unread,
Dec 26, 2015, 6:57:55 AM12/26/15
to AnkiDroid, enno.herman...@gmail.com
Thanks for the helpful suggestions on this.

In the end, I decided that using CSS would not be right for me, because the number of rows and columns will vary from card to card, and also I might want to tweak the table width depending on the content.

So I have ended up by using a table on each card - it's easy enough to copy, paste and edit the table.  An example is:

<table style="width:60%" align="center">

<tbody>

<tr>

<td align="left">N:</td>

<td align="left">tamten</td>

<td align="left">tamta</td>

<td align="left">tamto</td>

</tr>

<tr>

<td align="left">A:</td>

<td align="left">tamten/tamtego</td>

<td align="left">tamtą</td>

<td align="left">tamto</td>

</tr>

</tbody>

</table>


Thanks again for the help given.


David


Nicolas Raoul

unread,
Dec 26, 2015, 9:35:11 AM12/26/15
to anki-android, enno.herman...@gmail.com

Hi David,

Since you asked for "the simplest way" I will mention the low-tech option: take a picture of the table in your textbook and add it in AnkiDroid :-)

Cheers!
Nicolas

To unsubscribe from this group and stop receiving emails from it, send an email to anki-android...@googlegroups.com.

To post to this group, send email to anki-a...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/anki-android/1451061304.24540.7.camel%40vesta.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "AnkiDroid" group.
To unsubscribe from this group and stop receiving emails from it, send an email to anki-android...@googlegroups.com.

To post to this group, send email to anki-a...@googlegroups.com.

Xiao Sun

unread,
Dec 29, 2015, 7:07:28 PM12/29/15
to AnkiDroid, enno.herman...@gmail.com

You're doing this the hard way dude. 


Learn to use Anki add ons. There is table function in one of the add ons (sorry I forgot the exact name of the addon as I have like 20 different addons)
Reply all
Reply to author
Forward
0 new messages