Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paste tables #1738

Merged
merged 9 commits into from
Jan 14, 2021
Merged

Paste tables #1738

merged 9 commits into from
Jan 14, 2021

Conversation

HannahSchellekens
Copy link
Member

Make your tables in a sensible table editor, then import them into latex. Or just blatantly copy the interwebs...

Summary of additions and changes

  • HTML tables can now be pasted in the editor. Pasting will open the Insert Table wizard with the information from the pasted table. This allows pasting from Excel, LibreOffice Calc, Google Spreadsheets, but also from your browser for regular web pages.
  • Table column type will be Number if all cells in the column are numbers, otherwise it will be Text.
  • The first row is interpreted as a header.
  • Does (for now at least) support only basic table syntax. No col/rowspans, borders or styling. Only bold, italic and underlined text will be replaced with \textbf, \textit and \underline. We could add more support when the table insertion wizards upgrades as well.
  • When holding Shift while pasting, the Insert Table dialow will not show. This still allows for raw pasting.
  • Fixed UI issues with the Insert Table wizard,
  • Table wizard does no longer require any field to be filled in. Empty fields will just generate empty commands.
  • Refactored table creation wizard code to make it better readable.
  • Moved table wizard classes to the nl.hannahsten.texifyidea.action.wizard.table package.

How to test this pull request

Just go ahead and paste your tables :)

Wiki

Demo

Updated table wizard UI:

image

Usage demo:

table-demo.mp4

@HannahSchellekens HannahSchellekens added the enhancement New feature or (non bug related) change to the program. label Jan 11, 2021
@HannahSchellekens HannahSchellekens added this to the b0.7.3 milestone Jan 11, 2021
@HannahSchellekens HannahSchellekens self-assigned this Jan 11, 2021
@HannahSchellekens HannahSchellekens mentioned this pull request Jan 11, 2021
Copy link
Collaborator

@PHPirates PHPirates left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

@PHPirates PHPirates merged commit 6382014 into master Jan 14, 2021
@PHPirates PHPirates deleted the paste-tables branch January 14, 2021 07:24
@Steve-Li-1998
Copy link

Sorry, I think this feature no longer work now. The table which copied from Excel in current texify version will be paste as image

@PHPirates
Copy link
Collaborator

For reference: reported in #3676

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or (non bug related) change to the program.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants