After a Google Docs document was saved on local disk and edited with LibreOffice Writer, the "Table of Contents" stopped working.
Instead of showing the different chapters using the heading styles, only an empty grey field is showing up.
According to a discussion in the LibreOffice forums, this is caused by a bug in Google Sheets. When the document (.odt) is created in Google Sheets and then saved or exported, somehow the association" between header styles and chapter number gets lost. However this only happens on header styles 1-6, header styles 7-10 still seem to work.
To verify and fix this, click on Tools in the menu, then select "Chapter Numbering...":
Inside the "Chapter Numbering" window, the preview on the right side clearly shows the missing headers 1-6:
To fix this, select a level on the left side (here level 1) and then assign a specific "Paragraph style" to it. In this case "Heading 1" is assigned to level 1. The Preview on the right side then immediately adds the new "Heading 1":
Each level can now be fixed in the same way, assigning the corresponding header style to a level. At the end, all headings should be showing up again in the preview:
After The "Chapter Numbering" is fixed, the Table of Contents now finally shows up with actual content again:
No comments yet.
AWS Android Ansible Apache Apple Atlassian BSD Backup Bash Bluecoat CMS Chef Cloud Coding Consul Container Containers CouchDB DB DNS Database Docker ELK Elasticsearch Filebeat FreeBSD Galera GlusterFS Grafana Graphics HAProxy HTML Hacks Hardware Icinga Icingaweb2 InfluxDB Internet Java KVM Kibana Kodi Kubernetes LXC Linux Logstash Mac Macintosh Mail MariaDB Minio MongoDB Monitoring Multimedia MySQL NFS Nagios Network Nginx OSSEC OTRS Office PGSQL PHP Perl Personal PostgreSQL Postgres PowerDNS Proxmox Proxy Python Rancher Redis SSL Samba Seafile Security Shell SmartOS Solaris Surveillance SystemD Systemd TLS Tomcat Ubuntu Unix VMWare VMware Varnish Virtualization Windows Wireless Wordpress Wyse ZFS Zoneminder